login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A124093 Triangular numbers alternating with squares. 1
0, 0, 1, 1, 3, 4, 6, 9, 10, 16, 15, 25, 21, 36, 28, 49, 36, 64, 45, 81, 55, 100, 66, 121, 78, 144, 91, 169, 105, 196, 120, 225, 136, 256, 153, 289, 171, 324, 190, 361, 210, 400, 231, 441, 253, 484, 276, 529, 300, 576, 325, 625, 351, 676, 378, 729, 406, 784, 435, 841 (list; graph; refs; listen; history; internal format)
OFFSET

0,5

FORMULA

a(n)=n(n+2)/8 if n is even; a(n)=(n-1)^2/4 if n is odd (n>=0). - Emeric Deutsch (deutsch(AT)duke.poly.edu), Nov 29 2006

MAPLE

a:=proc(n) if n mod 2 = 0 then n*(n+2)/8 else (n-1)^2/4 fi end: seq(a(n), n=0..70); - Emeric Deutsch (deutsch(AT)duke.poly.edu), Nov 29 2006

MATHEMATICA

tr=Table[{k(k+1)/2, k^2}, {k, 0, 100}]//Flatten (Seidov)

CROSSREFS

Cf. A123596.

Sequence in context: A034706 A054686 A005214 * A025061 A037969 A153236

Adjacent sequences:  A124090 A124091 A124092 * A124094 A124095 A124096

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), based on a suggestion from Robert G. Wilson v, Nov 27 2006

EXTENSIONS

More terms from Zak Seidov, Nov 28 2006

More terms from Emeric Deutsch (deutsch(AT)duke.poly.edu), Nov 29 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 22:58 EST 2012. Contains 205685 sequences.