Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A126396
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A126396 Number of base 9 n-digit numbers with adjacent digits differing by two or less. +0
4
1, 9, 39, 175, 793, 3611, 16475, 75229, 343633, 1569883, 7172423, 32769925, 149723361, 684077955, 3125520983, 14280373781, 65246447425, 298108406323, 1362045450407, 6223131628517, 28433241805745, 129910355608771 (list; graph; listen)
OFFSET

0,2

COMMENT

[Empirical] a(base,n)=a(base-1,n)+5^(n-1) for base>=2n-1; a(base,n)=a(base-1,n)+5^(n-1)-2 when base=2n-2

PROGRAM

(S/R) stvar $[N]:(0..M-1) init $[]:=0 asgn $[]->{*} kill +[i in 0..N-2](($[i]`-$[i+1]`>2)+($[i+1]`-$[i]`>2))

CROSSREFS

Cf. Base 9 differing by one or less A126363.

Sequence in context: A060929 A124851 A124041 this_sequence A075210 A002085 A076603

Adjacent sequences: A126393 A126394 A126395 this_sequence A126397 A126398 A126399

KEYWORD

nonn

AUTHOR

Ron Hardin (rhh(AT)cadence.com), 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 August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research