cp's OEIS Frontend

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.

A102128 a(1) = 1; a(n) = sum of previous terms which divide n.

This page as a plain text file.
%I A102128 #17 Dec 01 2018 09:25:10
%S A102128 1,1,2,4,2,6,2,12,2,10,2,34,2,14,2,20,2,24,2,54,2,22,2,70,2,26,2,46,2,
%T A102128 46,2,36,2,68,2,94,2,38,2,74,2,62,2,70,2,138,2,94,2,60,2,82,2,114,2,
%U A102128 74,2,58,2,172,2,124,2,68,2,94,2,242,2,234,2,154,2,222,2,118,2,110,2,114,2
%N A102128 a(1) = 1; a(n) = sum of previous terms which divide n.
%H A102128 Antti Karttunen, <a href="/A102128/b102128.txt">Table of n, a(n) for n = 1..20000</a>
%F A102128 a(1) = 1; a(n) = [x^n] Sum_{k=1..n-1} a(k)*x^a(k)/(1 - x^a(k)). - _Ilya Gutkovskiy_, Dec 11 2017
%e A102128 Among the first 7 terms, the terms which divide 8 are 1, 1, 2, 4, 2 and 2.
%e A102128 So a(8) = 1 + 1 + 2 + 4 + 2 + 2 = 12.
%t A102128 Nest[Function[{a, n}, Append[a, Total@ Select[a, Mod[n, #] == 0 &]]] @@ {#, Length@ # + 1} &, {1}, 80] (* _Michael De Vlieger_, Nov 13 2018 *)
%o A102128 (PARI)
%o A102128 up_to = 20000;
%o A102128 A102128list(up_to) = { my(v=vector(up_to)); v[1] = 1; for(n=2,up_to,v[n] = sum(j=1,n-1,v[j]*!(n%v[j]))); (v); };
%o A102128 v102128 = A102128list(up_to);
%o A102128 A102128(n) = v102128[n]; \\ _Antti Karttunen_, Nov 10 2018
%Y A102128 Cf. A088167.
%K A102128 nonn
%O A102128 1,3
%A A102128 _Leroy Quet_, Feb 14 2005
%E A102128 More terms from _John W. Layman_, Mar 16 2005