|
|
A125316
|
|
Number of base 6 circular n-digit numbers with adjacent digits differing by 3 or less.
|
|
1
|
|
|
1, 6, 30, 138, 694, 3526, 18012, 92140, 471566, 2413794, 12356010, 63250314, 323779348, 1657433992, 8484446994, 43432107538, 222330112286, 1138113767838, 5826034724844, 29823627148788, 152667942902854
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
[Empirical] a(base,n)=a(base-1,n)+A025012(n+1) for base>=3.int(n/2)+1.
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (1 - 3*x^2 - 16*x^3 + 3*x^4 + 8*x^5) / ((1 - x - x^2)*(1 - 5*x - x^2 + 2*x^3)).
a(n) = 6*a(n-1) - 3*a(n-2) - 8*a(n-3) + a(n-4) + 2*a(n-5) for n>5.
(End)
|
|
PROG
|
(S/R) stvar $[N]:(0..M-1) init $[]:=0 asgn $[]->{*} kill +[i in 0..N-1](($[i]`-$[(i+1)mod N]`>3)+($[(i+1)mod N]`-$[i]`>3))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|