login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A126502 Number of base 7 n-digit numbers with adjacent digits differing by four or less. 1
1, 7, 43, 269, 1679, 10483, 65449, 408623, 2551187, 15928021, 99444631, 620870267, 3876326801, 24201367447, 151098247483, 943363239389, 5889771828959, 36772062710083, 229581830200249, 1433365791134783 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
[Empirical] a(base,n)=a(base-1,n)+9^(n-1) for base>=4n-3; a(base,n)=a(base-1,n)+9^(n-1)-2 when base=4n-4.
LINKS
FORMULA
Conjectures from Colin Barker, Jun 01 2017: (Start)
G.f.: (1 + x - x^2) / (1 - 6*x - 2*x^2 + 3*x^3).
a(n) = 6*a(n-1) + 2*a(n-2) - 3*a(n-3) for n>2.
(End)
PROG
(S/R) stvar $[N]:(0..M-1) init $[]:=0 asgn $[]->{*} kill +[i in 0..N-2](($[i]`-$[i+1]`>4)+($[i+1]`-$[i]`>4))
CROSSREFS
Cf. Base 7 differing by three or less A126475, two or less A126394, one or less A126361.
Sequence in context: A277670 A015451 A194779 * A286911 A343351 A277188
KEYWORD
nonn,base
AUTHOR
R. H. Hardin, Dec 28 2006
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 08:27 EDT 2024. Contains 371769 sequences. (Running on oeis4.)