The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A076992 Given a(1), ..., a(n-1), a(n) is minimal such that all terms of the sequence are distinct positive integers and, for all k>=1, the sum of the k terms from a(k) to a(2k-1) is a k-th power. 0
1, 2, 7, 3, 17, 4, 57, 5, 160, 6, 497, 8, 1454, 9, 4422, 10, 13117, 11, 39515, 12, 118092, 13, 354778, 14, 1062876, 15, 3190085, 16, 9565931, 18, 28702218, 19, 86093433, 20, 258293423, 21, 774840968, 22, 2324562427, 23, 6973568791, 24, 20920824474, 25 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
For even n, a(n) is just the smallest positive integer not already in the sequence. For odd n>=3, say n=2k-1, a(n) = 3^k - (a(k)+...+a(n-1)).
LINKS
MATHEMATICA
a[n_] := a[n]=Module[{s, sm, i, k}, s=Table[a[i], {i, 1, n-1}]; If[EvenQ[n], For[i=1, MemberQ[s, i], i++, Null]; Return[i]]; sm=Sum[a[i], {i, k=(n+1)/2, n-1}]; For[i=Ceiling[(sm+1)^(1/k)], MemberQ[s, i^k-sm], i++, Null]; i^k-sm]
CROSSREFS
Sequence in context: A279357 A099130 A362359 * A138751 A112303 A336854
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Oct 25 2002
EXTENSIONS
Edited by Dean Hickerson, Dec 02 2002
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 May 13 00:07 EDT 2024. Contains 372497 sequences. (Running on oeis4.)