Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A022998
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A022998 If n is odd then n else 2*n. +0
16
0, 1, 4, 3, 8, 5, 12, 7, 16, 9, 20, 11, 24, 13, 28, 15, 32, 17, 36, 19, 40, 21, 44, 23, 48, 25, 52, 27, 56, 29, 60, 31, 64, 33, 68, 35, 72, 37, 76, 39, 80, 41, 84, 43, 88, 45, 92, 47, 96, 49, 100, 51, 104, 53, 108, 55, 112, 57, 116, 59, 120, 61, 124, 63, 128, 65, 132, 67 (list; graph; listen)
OFFSET

0,3

COMMENT

Also for n>0: numerator of sum{2/(i*(i+1))|1<=i<=n}, denominator=A026741. - Reinhard Zumkeller (reinhard.zumkeller(AT)lhsystems.com), Jul 25 2002

FORMULA

Denominator of (n+1)*(n-1)*(2*n+1)/(2*n) (for n>0).

a(n+1) = lcm(n, n+2)/n + lcm(n, n+2)/(n+2) for all n >= 1 - Asher Auel (asher.auel(AT)reed.edu) Dec 15 2000

Multiplicative with a(2^e)=2^(e+1), a(p^e)=p^e, p>2.

G.f. x(x^2+4x+1)/(1-x^2)^2. - Ralf Stephan, Jun 10 2003

a(n)=3n/2+n(-1)^n/2=n(3+(-1)^n)/2. - Paul Barry (pbarry(AT)wit.ie), Sep 04 2003

a(n)a(n+3) = -4 + a(n+1)a(n+2).

a(n) = n*(mod(n+1,2)+1) = n^2 + 2n - 2n*floor((n+1)/2) - William A. Tedeschi (fynmun(AT)hotmail.com), Feb 29 2008

PROGRAM

(PARI) a(n)=if(n%2, n, 2*n)

CROSSREFS

Cf. A059026.

a(n) = A059029(n-1)+1 = A043547(n+2)-2.

Sequence in context: A103339 A092383 A021232 this_sequence A082895 A086938 A126084

Adjacent sequences: A022995 A022996 A022997 this_sequence A022999 A023000 A023001

KEYWORD

nonn,easy,mult

AUTHOR

njas

EXTENSIONS

More terms from Michael Somos, Aug 07 2000.

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 July 26 13:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research