OFFSET
1,1
COMMENTS
A squarefree subsequence of 11-gonal numbers, i.e., numbers of the form k*(9*k-7)/2.
Numbers of the form p*(9*p-7)/2 where p and (9*p-7)/2 are prime, and numbers of the form p*(18*p-7) where p and 18*p-7 are prime. - Robert Israel, Mar 03 2025
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
58 = 4*(9*4 - 7)/2 = 2*29;
141 = 6*(9*6 - 7)/2 = 3*47;
415 = 10*(9*10 - 7)/2 = 5*83;
3683 = 29*(9*29 - 7)/2 = 29*127.
MAPLE
N:= 10^6: # for terms <= N
x1:= floor(fsolve(x*(9*x-7)/2=N)[2]):
A:= map(p -> p*(9*p-7)/2, select(p -> isprime(p) and isprime((9*p-7)/2), [seq(i, i=3..x1, 2)])):
x2:= floor(fsolve(x*(18*x-7)=N)[2]):
B:= map(p -> p*(18*p-7), select(p -> isprime(p) and isprime(18*p-7),
[2, seq(i, i=3..x2, 2)])):
sort([op(A), op(B)]); # Robert Israel, Mar 03 2025
MATHEMATICA
Select[Table[n*(9*n - 7)/2, {n, 1, 400}], FactorInteger[#][[;; , 2]] == {1, 1} &] (* Amiram Eldar, May 30 2022 *)
PROG
(Python)
from sympy import factorint
from itertools import count, islice
def agen():
for h in (k*(9*k - 7)//2 for k in count(1)):
f = factorint(h, multiple=True)
if len(f) == len(set(f)) == 2: yield h
print(list(islice(agen(), 37))) # Michael S. Branicky, May 30 2022
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Massimo Kofler, May 30 2022
STATUS
approved