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!)
A109217 a(n) is the binary string of length n+1 that has 0's at indices that are squares and 1's elsewhere, where the most significant digit has index 0. 2
0, 0, 1, 11, 110, 1101, 11011, 110111, 1101111, 11011110, 110111101, 1101111011, 11011110111, 110111101111, 1101111011111, 11011110111111, 110111101111110, 1101111011111101, 11011110111111011, 110111101111110111, 1101111011111101111, 11011110111111011111 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
EXAMPLE
110111101 is a term because the string '00110111101' has zeros at the square indices 0,1,4,9 and the first two zeros are dropped.
MATHEMATICA
With[{s = Array[Boole[! IntegerQ@ Sqrt@ #] &, 1002, 0]}, Array[FromDigits[s[[1 ;; #]] ] &, Length@ s]] (* Michael De Vlieger, Mar 23 2020 *)
PROG
(PARI) a(n) = fromdigits(vector(n, i, !issquare(i))); \\ Jinyuan Wang, Mar 22 2020
CROSSREFS
Sequence in context: A065829 A261299 A081933 * A266680 A320890 A036843
KEYWORD
nonn,base,easy
AUTHOR
Jason Earls, Jun 22 2005
EXTENSIONS
Name changed, several terms inserted, and one more term from Jinyuan Wang, Mar 22 2020
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 March 29 08:59 EDT 2024. Contains 371268 sequences. (Running on oeis4.)