A331937 a(1) = 1; a(2) = 2; a(n + 1) = 2 * prime(a(n)).
1, 2, 6, 26, 202, 2462, 43954, 1063462, 33076174, 1270908802, 58596709306, 3170266564862, 197764800466826, 14024066291995502, 1117378164606478094
Offset: 1
Examples
The sequence of terms together with their associated trees begins: 1: o 2: (o) 6: (o(o)) 26: (o(o(o))) 202: (o(o(o(o)))) 2462: (o(o(o(o(o)))))
Crossrefs
Programs
-
Mathematica
msiQ[n_]:=n==1||n==2||!PrimeQ[n]&&SquareFreeQ[n]&&(PrimePowerQ[n]||CoprimeQ@@PrimePi/@First/@FactorInteger[n])&&And@@msiQ/@PrimePi/@First/@FactorInteger[n]; Select[Range[1000],msiQ]
Formula
Extensions
a(14)-a(15) from Giovanni Resta, Feb 10 2020
Comments