|
home | manual | reference | regression | sequence | develop | apps |
Sequences
Concepts | Sequences | Actions | Examples | Reference
Examples
Examples ! Many are generated and do not always make sence,
the examples from 'specials' are hand crafted and gives a good view of what the Sequences subsystem of PAD can do.
sequences | specials | random | play/single | play/double | keepRemoveFlag
add and antiprime bell biquadratic catalan caterer ceil chance composite cubic cullen decagonal divide emirp enneadecagonal eval even exponentiation fibonacci floor gnomonic golomb gould happy harshad heptadecagonal heptagonal hexagonal icosihenagonal identity kaprekar kolakoski kynea list loop lucas lucky mersenne modulo moserdebruijn multiple multiply nand negation newmanConway nor not octagonal octahedral odd oeis or palindrome pell pentagonal perfect perrin polite power powerful prime pronic random range recaman repeat round semiprime square step strong substract sylvester tetrahedral triangular tribonacci xnor xor xpadovan
cullen
basic/cullen.pad
HTML RESULT {sequence cullen}
{$sequence}
{/sequence}3 9 25 65 161 385 897 2049 4609 10241play/single/cullen.pad
HTML RESULT {sequence even, rows=5} {$sequence} {/sequence}2 4 6 8 10{sequence cullen, rows=10} {$sequence} {/sequence}3 9 25 65 161 385 897 2049 4609 10241{sequence even, cullen, rows=5} {$sequence} {/sequence}9 65 385 2049 10241keepRemoveFlag/cullen.pad
HTML RESULT {sequence 25, push='mySequence'}{pull mySequence, make, cullen} {$sequence} {/pull}3 9 25 65 161 385 897 2049 4609 10241 22529 49153 106497 229377 491521 1048577 2228225 4718593 9961473 20971521 44040193 92274689 192937985 402653185 838860801{pull mySequence, keep, cullen} {$sequence} {/pull}3 9 25{pull mySequence, remove, cullen} {$sequence} {/pull}1 2 4 5 6 7 8 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24{pull mySequence, flag, cullen} {$sequence} {/pull}0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
|
home | manual | reference | regression | sequence | develop | apps |
(c) 2003-2025 Herbert Groot Jebbink