login
A125327
Number of base 17 circular n-digit numbers with adjacent digits differing by 3 or less.
0
1, 17, 107, 545, 3235, 19487, 120311, 752895, 4762851, 30376427, 194992877, 1258241573, 8153851075, 53026892117, 345868792705, 2261537247275, 14818530646995, 97269300449331, 639438066653237, 4208955700527261
OFFSET
0,2
COMMENTS
[Empirical] a(base,n)=a(base-1,n)+A025012(n+1) for base>=3.int(n/2)+1
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
Sequence in context: A224322 A142321 A007682 * A126485 A159031 A080441
KEYWORD
nonn,base
AUTHOR
R. H. Hardin, Dec 28 2006
STATUS
approved