OFFSET
1,1
COMMENTS
All terms are odd numbers.
EXAMPLE
645 is a term because 645=3*5*43 is a sphenic number and is the 15th octagonal number.
1045 is a term because 1045=5*11*19 is a sphenic number and is the 19th octagonal number.
1281 is a term because 1281=3*7*61 is a sphenic number and is the 21st octagonal number.
MAPLE
N:= 10^6: # for terms <= N
isoct:= proc(n) issqr(1+3*n) and sqrt(1+3*n) mod 3 = 2 end proc:
P:= select(isprime, [seq(i, i=3..N/15, 2)]): nP:= nops(P):
R:= NULL:
for i from 1 to nP while P[i]*P[i+1]*P[i+2] <= N do
for j from i+1 to nP while P[i]*P[j]*P[j+1] <= N do
for k from j+1 to nP do
v:= P[i]*P[j]*P[k];
if v > N then break fi;
if isoct(v) then R:= R, v fi;
od od od:
sort([R]); # Robert Israel, Mar 19 2025
MATHEMATICA
Select[Table[n*(3*n-2), {n, 1, 220}], FactorInteger[#][[;; , 2]] == {1, 1, 1} &] (* Amiram Eldar, Mar 19 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Massimo Kofler, Mar 19 2025
STATUS
approved
