login
A124952
Number of base 24 circular n-digit numbers with adjacent digits differing by 2 or less.
1
1, 24, 114, 426, 1862, 8194, 36996, 169088, 781022, 3635922, 17034404, 80221088, 379426784, 1801177896, 8577255542, 40956427846, 196033612206, 940269589202, 4518417570036, 21749390784152, 104848429735272, 506137481003552
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 (24, -231, 1078, -1975, -2716, 16928, -12648, -44490, 67520, 55299, -131598, -32826, 137368, 4960, -82672, 4208, 28400, -2247, -5170, 395, 420, -25, -10).
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 24 of A285280.
Sequence in context: A064595 A064591 A228433 * A126411 A211580 A211594
KEYWORD
nonn,base
AUTHOR
R. H. Hardin, Dec 28 2006
STATUS
approved