This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A269423 #19 Apr 04 2016 00:28:46 %S A269423 1,1,3,1,7,4,8,8,10,16,3,9,7,12,13,25,12,4,12,14,22,58,3,12,34,48,11, %T A269423 31,31,4,79,14,35,82,36,113,21,28,6,47,59,9,46,1,105,131,59,103,30,27, %U A269423 48,12,7,38,60,19,50,110,157,210,7,6,23,134 %N A269423 a(n) is the sum of all 0 < m < n for which n == a(m) (mod m). %H A269423 Peter Kagey, <a href="/A269423/b269423.txt">Table of n, a(n) for n = 1..10000</a> %e A269423 We define a(1) = 1. %e A269423 a(2) = 1, because 2 == a(1) (mod 1); %e A269423 a(3) = 3, because 3 == a(1) (mod 1), and 3 == a(2) (mod 2): 1 + 2 = 3; %e A269423 a(4) = 1, because 4 == a(1) (mod 1); %e A269423 a(5) = 7, because 5 == 1 (mod 1), 5 == a(2) (mod 2), and 5 == a(4) (mod 4): 1 + 2 + 4 = 7. %t A269423 a = {1}; Do[AppendTo[a, Total@ Select[Range[n - 1], Mod[n, #] == Mod[a[[#]], #] &]], {n, 2, 64}]; a (* _Michael De Vlieger_, Mar 24 2016 *) %o A269423 (Java) %o A269423 int[] terms = new int[100]; %o A269423 terms[0] = 1; %o A269423 for (int i = 1; i < 100; i++) { %o A269423 int count = 0; %o A269423 for (int j = 0; j < i; j++) { %o A269423 if (((i+1) - terms[j]) % (j+1) == 0) { %o A269423 count = count + j + 1; %o A269423 } %o A269423 } %o A269423 terms[i] = count; %o A269423 } %o A269423 (PARI) lista(nn) = {va = vector(nn); print1(va[1] = 1, ", "); for (n=2, nn, va[n] = sum(m=1, n-1, m*(Mod(va[m], m) == Mod(n, m))); print1(va[n], ", "););} \\ _Michel Marcus_, Feb 26 2016 %Y A269423 Cf. A269427. %K A269423 easy,nonn %O A269423 1,3 %A A269423 _Alec Jones_, Feb 25 2016