OFFSET
1,1
COMMENTS
Squarefree numbers not congruent to 1 or 8 modulo 9.
For k > 1, a != 1 being a squarefree number (a != -1 unless k is a power of 2), then the ring of integers of Q(a^(1/k)) is Z[a^(1/k)] if and only if: for every p dividing k, we have a^(p-1) !== 1 (mod p^2). In other words, O_Q(a^(1/k)) = Z[a^(1/k)] if and only if none of the prime factors of k is a Wieferich prime of base a. See Theorem 5.3 of the paper of Keith Conrad.
In general, if a^d == 1 (mod p^2) for some d|(p-1), then it is easy to show that x = (1 + a^(d/p) + a^(2*d/p) + ... + a^((p-1)*d/p))/p is an algebraic integer not in Z[a^(1/p)].
The asymptotic density of this sequence is 9/(2*Pi^2) = 0.455945... (A088245). - Amiram Eldar, Mar 11 2021
LINKS
Jianing Song, Table of n, a(n) for n = 1..15000
Keith Conrad, The ring of integers in a radical extension
EXAMPLE
The ring of integers of Q(2^(1/3)) is {a + b*2^(1/3) + c*4^(1/3): a,b,c in Z} = Z[2^(1/3)], so 2 is a term.
PROG
(PARI) isA342392(n) = (n^2%9!=1) && issquarefree(n)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jianing Song, Mar 10 2021
STATUS
approved