# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a125440 Showing 1-1 of 1 %I A125440 #8 Mar 31 2012 12:35:02 %S A125440 1,28,364,3892,48412,614068,7972636,104937364,1395605212,18702818716, %T A125440 252094162664,3412942474992,46361084525644,631380551380516, %U A125440 8615433816724714,117735819504461662,1610758432389050988 %N A125440 Number of base 28 circular n-digit numbers with adjacent digits differing by 7 or less. %C A125440 [Empirical] a(base,n)=a(base-1,n)+F(7) for base>=7.int(n/2)+1 and F(d) is the largest coefficient in (1+x+...+x^(2d))^n %o A125440 (S/R) stvar $[N]:(0..M-1) init $[]:=0 asgn $[]->{*} kill +[i in 0..N-1](($[i]`-$[(i+1)mod N]`>7)+($[(i+1)mod N]`-$[i]`>7)) %K A125440 nonn,base %O A125440 0,2 %A A125440 _R. H. Hardin_, Dec 28 2006 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE