OFFSET
1,2
EXAMPLE
The term after 123 is 279 because 123 + 1 = 124 = 31*2*2 and 31*3*3 = 279.
MATHEMATICA
r23[n_]:=Module[{f=FactorInteger[n+1]}, Times@@Flatten[Table[ #[[1]], #[[2]]]&/@ Transpose[Join[{f[[All, 1]]/.(2->3), f[[All, 2]]}]]]]; NestList[r23, 1, 30] (* Harvey P. Dale, Dec 11 2018 *)
PROG
(PARI) a=vector(30); a[1]=1; for(n=2, #a, f=factor(a[n-1]+1); if(f[1, 1]==2, f[1, 1]=3); a[n]=factorback(f)); a \\ Colin Barker, May 15 2014
(PARI) lista(nn) = {a = 1; for (n=1, nn, print1(a, ", "); a++; nd = valuation(a, 2); a *= 3^nd/2^nd; ); } \\ Michel Marcus, May 15 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
J. Lowell, May 14 2014
EXTENSIONS
More terms from Colin Barker, May 14 2014
STATUS
approved