[go: up one dir, main page]

login
A124898
Number of base 17 circular n-digit numbers with adjacent digits differing by 2 or less.
2
1, 17, 79, 293, 1267, 5527, 24739, 112143, 513867, 2373647, 11035789, 51580623, 242148559, 1141014203, 5393615257, 25565881003, 121473190683, 578379092367, 2758998721111, 13182804752499, 63081972236317, 302258226703131
OFFSET
0,2
COMMENTS
[Empirical] a(base,n)=a(base-1,n)+A005191(n+1) for base>=2.int(n/2)+1.
See A285280 for confirmation of linear recurrence and code to produce sequence. - Ray Chandler, Aug 12 2023.
LINKS
Index entries for linear recurrences with constant coefficients, signature (17, -105, 245, 104, -1274, 912, 2310, -2361, -2039, 2218, 918, -920, -194, 156, 16, -8).
PROG
(S/R) stvar $[N]:(0..M-1) init $[]:=0 asgn $[]->{*} kill +[i in 0..N-1](($[i]`-$[(i+1)mod N]`>2)+($[(i+1)mod N]`-$[i]`>2))
CROSSREFS
Cf. Row 17 of A285280.
Sequence in context: A146594 A202138 A357740 * A036429 A126404 A142021
KEYWORD
nonn,base
AUTHOR
R. H. Hardin, Dec 28 2006
STATUS
approved