login
A124956
Number of base 28 circular n-digit numbers with adjacent digits differing by 2 or less.
1
1, 28, 134, 502, 2202, 9718, 44000, 201628, 933682, 4357222, 20462184, 96587068, 457871484, 2178414292, 10396478562, 49751026042, 238639567362, 1147064158822, 5523799769432, 26644582803412, 128714976934252
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 (28, -325, 1950, -5726, 2048, 36431, -83710, -39915, 347244, -179931, -699022, 681580, 825120, -1075801, -606254, 967407, 279940, -527440, -79152, 173157, 12824, -32375, -1050, 3045, 36, -108).
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 28 of A285280.
Sequence in context: A184679 A123376 A192796 * A014705 A126415 A187047
KEYWORD
nonn,base
AUTHOR
R. H. Hardin, Dec 28 2006
STATUS
approved