Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A124625
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A124625 Even numbers sandwiched between 1's. +0
4
1, 0, 1, 2, 1, 4, 1, 6, 1, 8, 1, 10, 1, 12, 1, 14, 1, 16, 1, 18, 1, 20, 1, 22, 1, 24, 1, 26, 1, 28, 1, 30, 1, 32, 1, 34, 1, 36, 1, 38, 1, 40, 1, 42, 1, 44, 1, 46, 1, 48, 1, 50, 1, 52, 1, 54, 1, 56, 1, 58, 1, 60, 1, 62, 1, 64, 1, 66, 1, 68, 1, 70, 1, 72, 1, 74, 1, 76, 1, 78, 1, 80, 1, 82, 1, 84 (list; graph; listen)
OFFSET

0,4

COMMENT

Interleaving of A000012 and A005843.

Created to simplify the definition of A129952.

a(n) = abs(A009531(n-1)).

FORMULA

a(n) = 1 for even n, a(n) = n-1 for odd n.

a(2*n) = 1, a(2*n+1) = 2*n.

G.f.: (1-x^2+2*x^3)/((1-x)^2*(1+x)^2).

a(n)=C(n+1,((n+2) mod 2))-1-(-1)^(n+1) - Paolo P. Lava (ppl(AT)spl.at), Aug 29 2007

PROGRAM

(PARI) {for(n=0, 85, print1(if(n%2>0, n-1, 1), ", "))}

(MAGMA) &cat[ [ 1, 2*k ]: k in [0..42] ];

CROSSREFS

Cf. A000012 (all 1's), A005843 (even numbers), A009531.

Sequence in context: A083258 A083259 A009531 this_sequence A137374 A131516 A088140

Adjacent sequences: A124622 A124623 A124624 this_sequence A124626 A124627 A124628

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Jun 13 2007

EXTENSIONS

More terms from Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Jun 16 2007

Edited by N. J. A. Sloane (njas(AT)research.att.com), May 21 2008 at the suggestion of R. J. Mathar

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 December 17 23:40 EST 2009. Contains 171025 sequences.


AT&T Labs Research