cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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

Original entry on oeis.org

1, 2, 18, 24, 35, 40, 252
Offset: 1

Views

Author

Zak Seidov, Feb 27 2006

Keywords

Comments

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

Crossrefs

Cf. A094405.

Programs

  • Maple
    Res:= 1;
    s:= 1:
    for n from 2 to 397 do
      a:= s mod n;
      s:= s+a;
      if a = 1 then Res:= Res, n fi;
    od:
    Res; # Robert Israel, Aug 16 2018

Extensions

Keywords fini,full added by Robert Israel, Aug 16 2018