Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A102699
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A102699 Number of different n-digit numbers, using only the digits 1 through n, where consecutive digits differ by 1. +0
1
1, 2, 6, 16, 42, 104, 252, 592, 1370, 3112, 6996, 15536, 34244, 74832, 162616, 351136, 754938, 1615208, 3443940, 7314928, 15493676, 32714992, 68918856, 144815456, 303703972, 635554064, 1327816392, 2769049312, 5766417480, 11989472672, 24897569648, 51632387904, 106958662714, 221305099240, 457456461444, 944605448816, 1948855239068, 4016999161008, 8273530965160, 17026127216608 (list; graph; listen)
OFFSET

1,2

COMMENT

It is assumed that there are n different digits available even when n > 9. - a(20) onwards from David Wasserman (dwasserm(AT)earthlink.net), Apr 26 2008

FORMULA

It appears that the limit of a(n)/a(n-1) is decreasing towards 2 - Ben Thurston (benthurston27(AT)yahoo.com), Oct 04 2006

EXAMPLE

For example, a(4)=16; the 16 numbers are 1212, 1232, 1234, 2121, 2123, 2321, 2323, 2343, 3212, 3232, 3234, 3432, 3434, 4321, 4323, and 4343.

MAPLE

p:= 0; paths := proc(m, n, s, t) global p; if(((t+1) <= m) and s <= (n)) then paths(m, n, s+1, t+1); end if; if(((t-1) > 0) and s <= (n)) then paths(m, n, s+1, t-1); end if; if(s = n) then p:=p+1; end if; end proc; sumpaths:=proc(j) global p; p:=0; sp:=0; for h from 1 to j do p:=0; paths(j, j, 1, h); sp:=sp+ p ; end do; sp; end proc; for l from 1 to 50 do sumpaths(l); end do; - Ben Thurston (benthurston27(AT)yahoo.com), Oct 04 2006

CROSSREFS

Adjacent sequences: A102696 A102697 A102698 this_sequence A102700 A102701 A102702

Sequence in context: A074405 A068786 A143123 this_sequence A025169 A111282 A115730

KEYWORD

nonn,base

AUTHOR

Don Rogers (donrogers42(AT)aol.com), Feb 07 2005

EXTENSIONS

More terms from Ben Thurston (benthurston27(AT)yahoo.com), Oct 04 2006

a(20) onwards from David Wasserman (dwasserm(AT)earthlink.net), Apr 26 2008

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 11 13:47 EDT 2008. Contains 144830 sequences.


AT&T Labs Research