A360257 a(1) = 1; for n > 1, a(n) is the number of preceding terms having the same sum of divisors as a(n-1).
1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 1, 10, 1, 11, 2, 2, 3, 2, 4, 2, 5, 2, 6, 3, 3, 4, 3, 5, 3, 6, 4, 4, 5, 4, 6, 5, 5, 6, 6, 7, 2, 7, 3, 7, 4, 7, 5, 7, 6, 8, 2, 8, 3, 8, 4, 8, 5, 8, 6, 9, 2, 9, 3, 9, 4, 9, 5, 9, 6, 10, 2, 10, 3, 10, 4, 10, 5, 10, 6, 11, 12, 1, 12, 2, 11, 13, 1
Offset: 1
Keywords
Examples
a(22) = 2 as a(21) = 11 and 11 has a divisor sum of A000203(11) = 12. However, A000203(6) also equals 12, and as a(11) = 6 there are two previous terms with a divisor sum of 12.
Links
- Scott R. Shannon, Image of the first 2000000 terms.
Programs
-
PARI
lista(nn) = my(va = vector(nn), vs=vector(nn)); va[1] = 1; vs[1] = 1; for (n=2, nn, va[n] = #select(x->(x==vs[n-1]), vs); vs[n] = sigma(va[n]);); va; \\ Michel Marcus, Jan 31 2023
Comments