a(n) is the sum of p consecutive residues of 2^x modulo n, starting with a sufficiently large x and where p = period of binary representation of 1/n.

A119957

a(n) is the sum of p consecutive residues of 2^x modulo n, starting with a sufficiently large x and where p = period of binary representation of 1/n.

Terms

    a(0) =0a(1) =0a(2) =3a(3) =0a(4) =10a(5) =6a(6) =7a(7) =0a(8) =27a(9) =20a(10) =55a(11) =12a(12) =78a(13) =14a(14) =15a(15) =0a(16) =68a(17) =54a(18) =171a(19) =40a(20) =42a(21) =110a(22) =92a(23) =24a(24) =250a(25) =156a(26) =243a(27) =28a(28) =406a(29) =30

External references