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!)
A115042 Positions of 1's in A094405, "a(n) = sum of all previous terms modulo n, a(1)=1". 0

%I #9 Aug 17 2018 11:44:13

%S 1,2,18,24,35,40,252

%N Positions of 1's in A094405, "a(n) = sum of all previous terms modulo n, a(1)=1".

%C Positions of 0's: 4, 9, 333.

%p Res:= 1;

%p s:= 1:

%p for n from 2 to 397 do

%p a:= s mod n;

%p s:= s+a;

%p if a = 1 then Res:= Res, n fi;

%p od:

%p Res; # _Robert Israel_, Aug 16 2018

%Y Cf. A094405.

%K nonn,fini,full

%O 1,2

%A _Zak Seidov_, Feb 27 2006

%E Keywords fini,full added by _Robert Israel_, Aug 16 2018

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 19 10:56 EDT 2024. Contains 371791 sequences. (Running on oeis4.)