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!)
A066910 a(1) = 1; a(n+1) = (sum{k=1 to n} a(k) ) (mod n). 8

%I #21 Mar 22 2017 21:53:03

%S 1,0,1,2,0,4,2,3,5,0,8,4,6,10,4,5,7,11,1,17,11,18,10,15,1,21,11,16,26,

%T 17,27,16,24,7,5,1,29,13,17,25,1,33,15,20,30,5,45,33,7,2,42,22,32,52,

%U 38,8,2,47,23,32,50,25,35,55,31,46,10,3,57,29,41,65,41,64,36,53,11,2

%N a(1) = 1; a(n+1) = (sum{k=1 to n} a(k) ) (mod n).

%C Steven Taschuk and Phil Carmody posted to sci.math (http://www.mathforum.com/epigone/sci.math/sazhazhi ) that a(k) = 97 for k >= 398.

%C Apart from the initial term, this is the first differences of A073117. - _Rémy Sigrist_, Mar 22 2017

%H Ivan Neretin, <a href="/A066910/b066910.txt">Table of n, a(n) for n = 1..501</a>

%e a(7) = (1 + 0 + 1 + 2 + 0 + 4) (mod 6) = 8 (mod 6) = 2.

%t Fold[Append[#1, Mod[Total@#1, #2]] &, {1}, Range@78] (* _Ivan Neretin_, Nov 22 2015 *)

%o (PARI) first(m)=my(v=vector(m));v[1]=1;for(i=2,m,v[i]=sum(k=1,i-1,v[k])%(i-1));v \\ _Anders Hellström_, Nov 22 2015

%Y Cf. A073117.

%K easy,nonn

%O 1,4

%A _Leroy Quet_, Jan 22 2002

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 06:42 EDT 2024. Contains 371964 sequences. (Running on oeis4.)