login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A126383 Number of base 29 n-digit numbers with adjacent digits differing by one or less. 4
1, 29, 85, 251, 743, 2203, 6539, 19425, 57741, 171723, 510923, 1520677, 4527425, 13482833, 40161769, 119656139, 356564583, 1062709515, 3167796987, 9444103221, 28159160001, 83971103781, 250430581245, 746945257479 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

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

LINKS

Table of n, a(n) for n=0..23.

PROG

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

CROSSREFS

Sequence in context: A195314 A323218 A124784 * A032508 A042654 A042652

Adjacent sequences:  A126380 A126381 A126382 * A126384 A126385 A126386

KEYWORD

nonn,base

AUTHOR

R. H. Hardin, Dec 26 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 16 10:52 EST 2021. Contains 340206 sequences. (Running on oeis4.)