login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A160689
a(1)=1. a(n) = the smallest positive integer such that d(a(n)) = d(Sum_{k=1..n} a(k)), where d(m) = the number of divisors of m.
5
1, 2, 2, 2, 8, 2, 2, 8, 2, 2, 8, 2, 2, 8, 2, 21, 5, 6, 6, 15, 3, 6, 8, 6, 2, 10, 12, 6, 12, 2, 10, 22, 8, 6, 34, 6, 6, 22, 8, 6, 8, 2, 2, 6, 8, 8, 2, 6, 15, 31, 6, 2, 6, 8, 6, 2, 2, 6, 10, 2, 6, 6, 15, 13, 6, 2, 6, 8, 2, 8, 6, 10, 6, 10, 8, 8, 6, 8, 6, 10, 8, 2, 2, 10, 2, 10, 6, 2, 38, 10, 6, 10, 8, 10, 8
OFFSET
1,2
COMMENTS
Sum_{k=1..n} a(k) = A160690(n).
d(a(n)) = d(A160690(n)) = A160691(n).
LINKS
MATHEMATICA
a[1] = 1; a[n_] := a[n] = (s = Sum[a[k], {k, n-1}]; For[m = 1, DivisorSigma[0, m] != DivisorSigma[0, s + m], m++]; m); Table[a[n], {n, 95}] (* Farideh Firoozbakht, May 28 2009 *)
PROG
(PARI) lista(nn) = {k = 1; print1(k, ", "); s = k; for (n=2, nn, k = 1; while(numdiv(k) != numdiv(k+s), k++); print1(k, ", "); s += k; ); } \\ Michel Marcus, Sep 04 2017
CROSSREFS
Sequence in context: A087421 A309574 A132697 * A179976 A137508 A055921
KEYWORD
nonn
AUTHOR
Leroy Quet, May 24 2009
EXTENSIONS
More terms from Farideh Firoozbakht, May 28 2009
STATUS
approved