login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A104074 a(1)=1. a(n) = a(n-1) + (number of terms, from among terms a(1) through a(n-1), which divide Sum_{k=1..n-1} a(k)). 2

%I #14 Nov 14 2021 17:37:51

%S 1,2,3,6,10,12,14,19,20,22,23,29,31,36,42,47,48,49,54,60,67,68,70,71,

%T 77,78,79,83,85,90,98,100,105,107,109,111,116,118,130,133,134,135,137,

%U 140,141,144,146,153,155,161,162,164,165,170,175,176,178,179,184,186,188

%N a(1)=1. a(n) = a(n-1) + (number of terms, from among terms a(1) through a(n-1), which divide Sum_{k=1..n-1} a(k)).

%H Michael De Vlieger, <a href="/A104074/b104074.txt">Table of n, a(n) for n = 1..10000</a>

%e The sum of the first 7 terms of the sequence is 48. There are 5 terms from among the first 7 terms which divide 48. (Those terms are a(1)=1, a(2)=2, a(3)=3, a(4)=6, a(6)=12.) So a(8) = a(7) + 5 = 19.

%t a = {1}, c = 1, Do[AppendTo[a, a[[-1]] + Count[a, _?(Mod[c, #] == 0 &)]]; c += Last[a], {i, 60}]; a (* _Michael De Vlieger_, Nov 14 2021 *)

%K nonn

%O 1,2

%A _Leroy Quet_, Jun 24 2007

%E Corrected and extended by _Joshua Zucker_, Jul 18 2007

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 26 11:19 EDT 2024. Contains 375456 sequences. (Running on oeis4.)