Does OEIS sequence A059046 contain any odd squares $u^2$, with $\omega(u) \geq 2$?

128 Views Asked by At

Does OEIS sequence A059046 contain any odd squares $u^2$, with $\omega(u) \geq 2$ (where $\omega(x)$ is the number of distinct prime factors of $x$)?

Here are the first sixty-two terms:

A059046 - Numbers $n$ such that $\sigma(n)-n$ divides $n-1$.

$2, 3, 4, 5, 7, 8, 9, 11, 13, 16, 17, 19, 23, 25, 27, 29, 31, 32, 37, 41, 43, 47, 49, 53, 59, 61, 64, 67, 71, 73, 77, 79, 81, 83, 89, 97, 101, 103, 107, 109, 113, 121, 125, 127, 128, 131, 137, 139, 149, 151, 157, 163, 167, 169, 173, 179, 181, 191, 193, 197, 199, 211$

So, for example: $$\sigma({3^2}{5^2}) - 225 = {13}\cdot{31} - 225 = 403 - 225 = 178 \nmid 224,$$ so that $225$ is not in the sequence.

Without the constraint on the number of distinct prime factors $\omega(u')$, $u' = 9, 25, 49, 81, 121, 169, \ldots$.

OEIS sequence A059046

1

There are 1 best solutions below

3
On BEST ANSWER

I checked that there are no such squares with $u^2<10^{12}$ using this simple GP script:

is(n)=(n-1)%(sigma(n)-n)==0
forcomposite(n=6,1e6,if(is(n^2)&&!isprimepower(n), print(n)))

I then used A059047 to check that there are no such squares with $u^2<10^{22}.$ Total computing time was about 12 seconds.