Summary
Problem 366's statement asks about 2-full $n$
with $n+1$ 3-full, but every example in its commentary runs the other way round —
3-full followed by 2-full. The statement's orientation looks like a transcription
error. Separately, the search bound the page quotes can be extended by a factor of
100 fairly cheaply, because the bound is inherited from a search over a much
larger space than problem 366 needs.
Filing here rather than on the problem page because it is a page-content question
rather than mathematical discussion, following the precedent of #355.
Amended. The first version of this issue quoted only the second paragraph of
the commentary and drew a further inference from it that does not survive the
full text — see the comment below. The full commentary is quoted verbatim in §1
and the unsupported inference has been removed. The orientation observation,
which is the substance, is unchanged.
1. The statement's orientation disagrees with every example given
The statement, verbatim:
Are there any $2$-full $n$ such that $n+1$ is $3$-full? That is, if $p\mid n$
then $p^2\mid n$ and if $p\mid n+1$ then $p^3\mid n+1$.
The commentary, verbatim and in full:
Erdős originally asked Mahler whether there are infinitely many pairs of
consecutive powerful numbers, but Mahler immediately observed that the answer is
yes from the infinitely many solutions to the Pell equation $x^2=8y^2+1$.
Note that $8$ is 3-full and $9$ is $2$-full. Erdős and Graham asked if this is
the only pair of such consecutive integers. Stephan has observed that
$12167=23^3$ and $12168=2^33^213^2$ (a pair already known to Golomb [Go70]) is
another example, but (by OEIS A060355) there are no other examples for
$n<10^{22}$.
In [Er76d] Erdős asks the weaker question of whether there are any consecutive
pairs of $3$-full integers (which is also discussed in problem B16 of Guy's
collection [Gu04]).
Turturean notes in the comments that the ABC conjecture implies there are only
finitely many such $n$.
The commentary is internally coherent as a narrative. The mismatch is between it
and the statement. By explicit factorisation:
| pair |
factorisation |
statement asks: $n$ 2-full and $n+1$ 3-full |
commentary exhibits: $n$ 3-full and $n+1$ 2-full |
| $(8,9)$ |
$2^3$, $3^2$
|
$8$ 2-full ✓, $9$ 3-full ✗ → fails
|
✓ ✓ → holds
|
| $(12167,12168)$ |
$23^3$, $2^3\cdot3^2\cdot13^2$
|
$12167$ 2-full ✓, $12168$ 3-full ✗ ($27\nmid12168$) → fails
|
✓ ✓ → holds
|
The commentary's sentence "Note that 8 is 3-full and 9 is 2-full" states the
orientation explicitly, and the second example follows it. So the whole commentary
discusses 3-full → 2-full while the statement asks 2-full → 3-full.
One consequence worth separating out: under the statement as written, no
example is known at all, at any size — a materially different state of affairs
from the one the commentary describes, where two examples are known and the
question is whether more exist.
I am not claiming to know which orientation was intended, and the computation in
§2 deliberately covers both.
2. The quoted search bound
The commentary's "by OEIS A060355 there are no other examples for $n<10^{22}$"
comes from A060355's b-file, whose header reads:
Donovan Johnson, Table of n, a(n) for n = 1..39 (terms < $10^{22}$)
A060355 lists $k$ such that $k$ and $k+1$ are both merely powerful.
Problem 366 additionally needs one member to be 3-full, which is a much
sparser condition, so 366 does not need anything like the full A060355 search:
|
density |
count $\le 10^{24}$
|
| powerful (A060355's space) |
$\sim\frac{\zeta(3/2)}{\zeta(3)}x^{1/2}=2.1733,x^{1/2}$ |
$\approx2.2\times10^{12}$ |
| cubefull (what 366 needs) |
$\sim C,x^{1/3}$, $C\approx4.65$
|
$460{,}160{,}083$ (exact) |
Enumerating cubefull $m$ and testing $m\pm1$ for powerfulness therefore reaches
much further than $10^{22}$ on ordinary hardware. Doing so gives:
There is no $n<10^{24}$ with $n$ 2-full and $n+1$ 3-full. The only
$n<10^{24}$ with $n$ 3-full and $n+1$ 2-full are $n=8$ and $n=12167$.
This covers both readings in §1, so it holds however that is resolved.
To be clear about what is and isn't new here: below $10^{22}$ the second
sentence reproduces what the page already asserts, and serves only as validation
of the method. The new content is the extension of the range from $10^{22}$ to
$10^{24}$, and the fact that the direction the statement literally asks about has
no example anywhere in that range either. It does not extend A060355 — a
corollary is only that any A060355 term between $3.888\times10^{21}$ (the largest
b-file term) and $10^{24}$ has neither member cubefull.
3. How this was checked
The powerfulness test avoids factorisation entirely, which is what makes the
range reachable. With $B=\lceil X^{1/5}\rceil$, trial divide by primes $p\le B$
and reject as soon as some $p$ divides exactly once; let $r$ be the remaining
cofactor. Every prime factor of $r$ exceeds $B$, so if $r$ is powerful with $k$
distinct primes then $r\ge B^{2k}$ and $r\le X=B^5$, forcing $k\le2$. For $k=1$,
$r=p^e$ is a perfect power; for $k=2$, $r=p^aq^b$ with $a,b\ge2$ and $a+b\le5$,
and $(2,3)$ would give $r>B^5\ge r$ — so only $(2,2)$, a square, survives. Hence
$r$ is powerful iff $r$ is a perfect power.
Validation:
- The test agrees with an independent trial-division reference on all
$n\le200{,}000$ exhaustively, 400 random 22-digit integers, 200 constructed
powerful $a^2b^3$ near $10^{22}$, 60 values $p^3$, and 143 values $(pq)^2$ —
zero disagreements.
- Boundary: the largest value tested is $X+1$ and $B$ is built from $X+2$, so
$B^5\ge X+2>X+1$; checked at $10^{18},10^{22},10^{24},10^{26}$.
- The candidate count was reproduced by a second algorithm sharing no code path
with the first. Every cubefull $n$ factors uniquely as $a^3b^4c^5$ with $b,c$
squarefree and coprime, turning the count into a double sum:
| $X$ |
exact cubefull count |
scan tested |
| $10^{14}$ |
198,767 |
198,766 |
| $10^{16}$ |
947,753 |
947,752 |
| $10^{18}$ |
4,480,253 |
4,480,252 |
| $10^{20}$ |
21,055,958 |
21,055,957 |
| $10^{22}$ |
98,566,055 |
98,566,054 |
| $10^{24}$ |
460,160,083 |
460,160,082 |
The uniform difference of 1 is $m=1$, which the scan skips deliberately: it gives
$n=0$ in the forward direction and $(1,2)$ in the reverse, and 2 is not powerful.
- Every scale from $10^{14}$ up reproduces both known pairs and finds nothing in
the direction the statement asks.
- Cross-check against Johnson's b-file: the only A060355 terms below $10^{22}$
with a cubefull member are 8 and 12167; the scan returns exactly those. (As
noted in §2, this is the fact the page itself asserts, so it validates the
method rather than adding anything.)
A self-contained runnable reproduction is in a comment below.
Suggested action
The statement and the commentary should agree on which of $n$, $n+1$ is the 3-full
one, and the $10^{22}$ figure can be updated to $10^{24}$. I have not opened a PR
because neither the statement nor the commentary is in data/problems.yaml — that
file carries only status / OEIS / tag metadata — so this needs an edit on
erdosproblems.com rather than here. I did not want to guess the orientation, since
the two readings give materially different answers to "is anything known at all".
Disclosure: this issue and the supporting computation were produced with AI
assistance (GitHub Copilot CLI), as required by CONTRIBUTING.md. Nothing here has
been or will be submitted to the OEIS, where AI-generated submissions are
forbidden. The correctness argument in §3 is short and self-contained
specifically so it can be checked without trusting the code, and every scale is
cross-checked against independently known values.
Summary
Problem 366's statement asks about 2-full$n$ $n+1$ 3-full, but every example in its commentary runs the other way round —
with
3-full followed by 2-full. The statement's orientation looks like a transcription
error. Separately, the search bound the page quotes can be extended by a factor of
100 fairly cheaply, because the bound is inherited from a search over a much
larger space than problem 366 needs.
Filing here rather than on the problem page because it is a page-content question
rather than mathematical discussion, following the precedent of #355.
1. The statement's orientation disagrees with every example given
The statement, verbatim:
The commentary, verbatim and in full:
The commentary is internally coherent as a narrative. The mismatch is between it
and the statement. By explicit factorisation:
The commentary's sentence "Note that 8 is 3-full and 9 is 2-full" states the
orientation explicitly, and the second example follows it. So the whole commentary
discusses 3-full → 2-full while the statement asks 2-full → 3-full.
One consequence worth separating out: under the statement as written, no
example is known at all, at any size — a materially different state of affairs
from the one the commentary describes, where two examples are known and the
question is whether more exist.
I am not claiming to know which orientation was intended, and the computation in
§2 deliberately covers both.
2. The quoted search bound
The commentary's "by OEIS A060355 there are no other examples for $n<10^{22}$"
comes from A060355's b-file, whose header reads:
A060355 lists$k$ such that $k$ and $k+1$ are both merely powerful.
Problem 366 additionally needs one member to be 3-full, which is a much
sparser condition, so 366 does not need anything like the full A060355 search:
Enumerating cubefull$m$ and testing $m\pm1$ for powerfulness therefore reaches$10^{22}$ on ordinary hardware. Doing so gives:
much further than
This covers both readings in §1, so it holds however that is resolved.
To be clear about what is and isn't new here: below$10^{22}$ the second$10^{22}$ to
$10^{24}$ , and the fact that the direction the statement literally asks about has$3.888\times10^{21}$ (the largest$10^{24}$ has neither member cubefull.
sentence reproduces what the page already asserts, and serves only as validation
of the method. The new content is the extension of the range from
no example anywhere in that range either. It does not extend A060355 — a
corollary is only that any A060355 term between
b-file term) and
3. How this was checked
The powerfulness test avoids factorisation entirely, which is what makes the$B=\lceil X^{1/5}\rceil$ , trial divide by primes $p\le B$ $p$ divides exactly once; let $r$ be the remaining$r$ exceeds $B$ , so if $r$ is powerful with $k$ $r\ge B^{2k}$ and $r\le X=B^5$ , forcing $k\le2$ . For $k=1$ ,
$r=p^e$ is a perfect power; for $k=2$ , $r=p^aq^b$ with $a,b\ge2$ and $a+b\le5$ ,$(2,3)$ would give $r>B^5\ge r$ — so only $(2,2)$ , a square, survives. Hence
$r$ is powerful iff $r$ is a perfect power.
range reachable. With
and reject as soon as some
cofactor. Every prime factor of
distinct primes then
and
Validation:
powerful
zero disagreements.
with the first. Every cubefull
squarefree and coprime, turning the count into a double sum:
The uniform difference of 1 is$m=1$ , which the scan skips deliberately: it gives
$n=0$ in the forward direction and $(1,2)$ in the reverse, and 2 is not powerful.
the direction the statement asks.
with a cubefull member are 8 and 12167; the scan returns exactly those. (As
noted in §2, this is the fact the page itself asserts, so it validates the
method rather than adding anything.)
A self-contained runnable reproduction is in a comment below.
Suggested action
The statement and the commentary should agree on which of$n$ , $n+1$ is the 3-full$10^{22}$ figure can be updated to $10^{24}$ . I have not opened a PR
one, and the
because neither the statement nor the commentary is in
data/problems.yaml— thatfile carries only status / OEIS / tag metadata — so this needs an edit on
erdosproblems.com rather than here. I did not want to guess the orientation, since
the two readings give materially different answers to "is anything known at all".
Disclosure: this issue and the supporting computation were produced with AI
assistance (GitHub Copilot CLI), as required by CONTRIBUTING.md. Nothing here has
been or will be submitted to the OEIS, where AI-generated submissions are
forbidden. The correctness argument in §3 is short and self-contained
specifically so it can be checked without trusting the code, and every scale is
cross-checked against independently known values.