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!)
A102719 a(n) = a(n-1) + (sum of the last three digits of the sequence so far); a(0)=0; a(1)=1; a(2)=2 and a(n) < a(n+1). 1

%I #7 Jul 15 2014 21:56:48

%S 0,1,2,5,13,22,29,42,57,71,86,101,103,107,115,122,127,137,148,161,169,

%T 185,199,218,229,242,250,257,271,281,292,305,313,320,325,335,346,359,

%U 376,392,406,416,427,440,448,464,478,497,517,530,538,554,568,587,607

%N a(n) = a(n-1) + (sum of the last three digits of the sequence so far); a(0)=0; a(1)=1; a(2)=2 and a(n) < a(n+1).

%H Alois P. Heinz, <a href="/A102719/b102719.txt">Table of n, a(n) for n = 0..10000</a>

%e 86+(1+8+6) = 101.

%e 101+(1+0+1) = 103.

%e 103+(1+0+3) = 107.

%p a:= proc(n) option remember; local k, i; if n<2 then n elif n=2 then b(2):= [2,1,0]; 2 else k:= a(n-1) +add (i, i=b(n-1)); b(n):= [convert (k, base, 10)[], b(n-1)[]][1..3]; k fi end: seq (a(n), n=0..80); # _Alois P. Heinz_, Aug 13 2009

%Y Cf. A102039.

%K base,easy,nonn

%O 0,3

%A _Eric Angelini_, Feb 06 2005

%E Corrected and extended by _Alois P. Heinz_, Aug 13 2009

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 April 25 05:18 EDT 2024. Contains 371964 sequences. (Running on oeis4.)