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!)
A357987 Lexicographically earliest sequence of positive integers such that no sum of consecutive terms is a square or higher power of an integer. 1
2, 3, 2, 5, 5, 2, 3, 2, 21, 5, 2, 5, 5, 5, 7, 6, 5, 6, 6, 7, 11, 24, 2, 13, 5, 6, 35, 7, 10, 34, 6, 15, 2, 28, 10, 2, 5, 14, 19, 2, 5, 28, 2, 3, 2, 35, 2, 18, 6, 11, 3, 3, 37, 2, 5, 26, 29, 33, 42, 13, 5, 5, 10, 11, 13, 21, 18, 5, 10, 5, 6, 7, 24, 20, 3, 15 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
This sequence is a variant of A357579 where we allow duplicates.
This sequence is well defined as we have arbitrary large gaps in A001597.
LINKS
Rémy Sigrist, C program
EXAMPLE
For n = 1:
- 2 is not a perfect power,
- so a(1) = 2.
For n = 2:
- 2 + 2 is a perfect power,
- neither 2 + 3 nor 3 are perfect powers,
- so a(2) = 3.
For n = 3:
- none of 2 + 3 + 2, 3 + 2, 2 is a perfect power,
- so a(3) = 2.
PROG
(C) See Links section.
CROSSREFS
Sequence in context: A075274 A331309 A178144 * A135737 A125179 A141821
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Oct 23 2022
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 April 15 02:01 EDT 2024. Contains 371667 sequences. (Running on oeis4.)