%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
|