|
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
catalan
basic/catalan.pad
HTML RESULT {sequence catalan}
{$sequence}
{/sequence}1 2 5 14 42 132 429 1430 4862 16796play/single/catalan.pad
HTML RESULT {sequence even, rows=5} {$sequence} {/sequence}2 4 6 8 10{sequence catalan, rows=10} {$sequence} {/sequence}1 2 5 14 42 132 429 1430 4862 16796{sequence even, catalan, rows=5} {$sequence} {/sequence}2 14 132 1430 16796keepRemoveFlag/catalan.pad
HTML RESULT {sequence 25, push='mySequence'}{pull mySequence, make, catalan} {$sequence} {/pull}1 2 5 14 42 132 429 1430 4862 16796 58786 208012 742900 2674440 9694845 35357670 129644790 477638700 1767263190 6564120420 24466267020 91482563640 343059613650 1289904147324 4861946401452{pull mySequence, keep, catalan} {$sequence} {/pull}1 2 5 14{pull mySequence, remove, catalan} {$sequence} {/pull}3 4 6 7 8 9 10 11 12 13 15 16 17 18 19 20 21 22 23 24 25{pull mySequence, flag, catalan} {$sequence} {/pull}1 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
|
home | manual | reference | regression | sequence | develop | apps |
(c) 2003-2025 Herbert Groot Jebbink