[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A365716
a(n) = 1 if the largest divisor of n <= sqrt(n) is a power of 2, otherwise 0.
2
1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0
OFFSET
1
FORMULA
a(n) = A209229(A033676(n)).
a(n) >= A365605(n).
MATHEMATICA
Table[If[IntegerQ[Log2[Max[Select[Divisors[n], #<=Sqrt[n]&]]]], 1, 0], {n, 110}] (* Harvey P. Dale, May 26 2024 *)
PROG
(PARI)
A209229(n) = (n && !bitand(n, n-1));
A033676(n) = { my(d); if(n<2, 1, d=divisors(n); d[(length(d)+1)\2]) }; \\ From A033676.
CROSSREFS
Characteristic function of A365406.
Sequence in context: A267256 A351824 A365605 * A334460 A071023 A166280
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 22 2023
STATUS
approved