Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A126502
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A126502 Number of base 7 n-digit numbers with adjacent digits differing by four or less. +0
2
1, 7, 43, 269, 1679, 10483, 65449, 408623, 2551187, 15928021, 99444631, 620870267, 3876326801, 24201367447, 151098247483, 943363239389, 5889771828959, 36772062710083, 229581830200249, 1433365791134783 (list; graph; listen)
OFFSET

0,2

COMMENT

[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

PROGRAM

(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: A003464 A022036 A015451 this_sequence A042213 A164775 A127999

Adjacent sequences: A126499 A126500 A126501 this_sequence A126503 A126504 A126505

KEYWORD

nonn

AUTHOR

Ron Hardin (rhhardin(AT)att.net), Dec 28 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 21 10:15 EST 2009. Contains 171081 sequences.


AT&T Labs Research