OFFSET
1,1
COMMENTS
The definition "a(1)=2, for n > 1, a(n) = A129902(a(n-1))/2" is simply 2 followed by all 3's.
EXAMPLE
A129902(4)=12, and 12/2=6, so a(2)=6.
MATHEMATICA
f[n_] := Module[{d = 2 * DivisorSigma[0, n], k = 2*n}, While[DivisorSigma[0, k] != d, k += n]; k]; a[1] = 4; a[n_] := a[n] = f[a[n - 1]]/2; Array[a, 24] (* Amiram Eldar, Feb 14 2022 *)
PROG
(PARI) f(n) = {my(k=1); while (numdiv(n*k) != 2*numdiv(n), k++); n*k; } \\ A129902
lista(nn) = {my(va = vector(nn)); va[1] = 4; for (n=2, nn, va[n] = f(va[n-1])/2; ); va; } \\ Michel Marcus, Feb 14 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
J. Lowell, Feb 13 2022
STATUS
approved