Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A126508
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A126508 Number of base 13 n-digit numbers with adjacent digits differing by four or less. +0
2
1, 13, 97, 753, 5897, 46287, 363509, 2855151, 22426249, 176152007, 1383628073, 10868042671, 85365689641, 670525630751, 5266807148873, 41369421713583, 324946216030489, 2552369333410047, 20048207650685929, 157473538310505327 (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 13 differing by three or less A126481, two or less A126400, one or less A126367.

Adjacent sequences: A126505 A126506 A126507 this_sequence A126509 A126510 A126511

Sequence in context: A141894 A125350 A049294 this_sequence A075899 A006976 A034270

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 October 7 14:39 EDT 2008. Contains 144666 sequences.


AT&T Labs Research