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!)
A365807 a(n) = 1 if A163511(n) is a square, 0 otherwise. 3
1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0
LINKS
FORMULA
a(0) = 1, a(1) = 0, a(2) = 1; for n > 2, if n is odd, then a(n) = a((n-1)/2), and if n is a multiple of 4, then a(n) = a(n/4), otherwise a(n) = 0.
a(n) = A010052(A163511(n)).
a(n) = A059841(A365805(n)).
PROG
(PARI)
A163511(n) = if(!n, 1, my(p=2, t=1); while(n>1, if(!(n%2), (t*=p), p=nextprime(1+p)); n >>= 1); (t*p));
A365807(n) = issquare(A163511(n));
(PARI) A365807(n) = if(n<=2, !(n%2), if(n%2, A365807((n-1)/2), if(n%4, 0, A365807(n/4))));
CROSSREFS
Characteristic function of A365808.
Sequence in context: A243148 A089495 A345703 * A173857 A114482 A371844
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 01 2023
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 5 13:55 EDT 2024. Contains 372275 sequences. (Running on oeis4.)