Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A100254
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A100254 Let j be the smallest integer for which 1+(1+1*n)+(1+2*n)+...+(1+j*n)=k^2=s. Then a(n)=j; if no such j exists, then a(n)=0. +0
8
7, 1, 80, 24, 5, 8, 1, 0, 6, 3, 2, 8, 21, 1, 48, 3, 7, 0, 16, 8, 80, 4, 1, 24, 45, 2, 9, 120, 5, 8, 17, 3, 30, 1, 10, 168, 6, 5, 1680, 48, 7, 3, 4960, 11, 224, 7, 1, 15, 31, 0, 48, 24, 16, 12, 288, 8, 48, 6, 26, 80, 117, 1, 136160, 195, 13, 3, 9, 840, 1520, 24, 49, 8, 70, 2, 1680 (list; graph; listen)
OFFSET

1,1

COMMENT

Basis for sequence is shortest arithmetic series with initial term 1 and difference n that sums to a perfect square.

FORMULA

1+(1+1*n)+(1+2*n)+...+(1+a(n)*n)= 1+(1+1*n)+(1+2*n)+...+A100253(n)=A100251(n)^2=A100252(n)

EXAMPLE

a(3)=80 since 1 + 4 + 7 +...+ (1+80*3)= 99^2 = 9801 and no other arithmetic series with initial term 1, difference 3 and fewer terms sums to a perfect square.

MATHEMATICA

a[n_] := Block[{k = 1}, While[ !IntegerQ[ Sqrt[(k + 1)(1 + k*n/2)]], k++ ]; k]; a[18] = a[50] = 0; Table[ a[n], {n, 75}] (from Robert G. Wilson v Nov 27 2004)

CROSSREFS

Sequence in context: A051339 A134141 A110788 this_sequence A119935 A027447 A027517

Adjacent sequences: A100251 A100252 A100253 this_sequence A100255 A100256 A100257

KEYWORD

nonn

AUTHOR

Charlie Marion (charliemath(AT)optonline.net), Nov 21 2004

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 27 2004

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 November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research