OFFSET
1,2
COMMENTS
Such k must be squarefree. Actually, such k must be a cyclic number (A003277).
Number of the form p_1*p_2*...*p_r where the p_i are distinct primes and no (p_j)^2-1 is divisible by any p_i.
The smallest term with exactly n distinct prime factors is given by A350340.
From the term 5 on, no term can be divisible by 2 or 3.
LINKS
Jianing Song, Table of n, a(n) for n = 1..10000
FORMULA
A350343(n) = a(n)^2.
EXAMPLE
For primes p, p is a term since every group of order p^2 is abelian. Such group is isomorphic to either C_{p^2} or C_p X C_p.
For primes p, q, if p^2 !== 1 (mod q), q^2 !== 1 (mod p), then p*q is a term since every group of that order is abelian. Such group is isomorphic to C_{p^2*q^2}, C_p X C_{p*q^2}, C_q X C_{p^2*q} or C_{p*q} X C_{p*q}.
PROG
(PARI) isA051532(n) = my(f=factor(n), v=vector(#f[, 1])); for(i=1, #v, if(f[i, 2]>2, return(0), v[i]=f[i, 1]^f[i, 2])); for(i=1, #v, for(j=i+1, #v, if(v[i]%f[j, 1]==1 || v[j]%f[i, 1]==1, return(0)))); 1 \\ Charles R Greathouse IV's program for A051532
isA350342(n) = isA051532(n^2)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jianing Song, Dec 25 2021
STATUS
approved
