login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A212585 Walks of length n on the x-axis using steps {1,-1} and visiting no point more than twice. 5
1, 2, 4, 8, 12, 18, 26, 40, 56, 82, 112, 162, 222, 316, 432, 608, 834, 1166, 1602, 2228, 3066, 4252, 5858, 8108, 11178, 15454, 21316, 29450, 40632, 56114, 77434, 106914, 147550, 203696, 281134, 388082, 535636, 739368, 1020506, 1408626, 1944266, 2683674, 3704184 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
G.f. (-1-x-2*x^3+3*x^5-2*x^7+x^8)/((-1+x^2)^2 * (-1+x+x^4)).
a(0)=1; a(n) = 2*(A212584(n) + sum(j,1-mod(n,2) .. n-3, step+2, A212584(j))).
MATHEMATICA
CoefficientList[Series[(-1-x-2*x^3+3*x^5-2*x^7+x^8)/((-1+x^2)^2 * (-1+x+x^4)), {x, 0, 45}], x]
CROSSREFS
Sequence in context: A053799 A343949 A284122 * A085891 A006501 A224814
KEYWORD
nonn,walk
AUTHOR
David Scambler, May 22 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)