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.

Showing 1-3 of 3 results.

A208128 Numbers n for which A210255(n)=3.

Original entry on oeis.org

36, 68, 99, 132, 163, 195, 226, 260, 291, 323, 354, 387, 418, 450, 481, 516, 520, 547, 579, 610, 643, 674, 706, 737, 771, 802, 834, 865, 898, 929, 961, 992, 1028, 1032, 1059, 1091, 1122, 1155, 1186, 1218, 1249, 1283, 1314, 1346, 1377, 1410, 1441, 1473, 1504, 1539, 1543, 1570
Offset: 1

Views

Author

Vladimir Shevelev, Mar 29 2012

Keywords

Crossrefs

Cf. A210255.

A210253 Number of distinct residues of all factorials mod 2^n.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 8, 8, 9, 10, 11, 13, 14, 16, 16, 16, 17, 18, 19, 20, 22, 24, 24, 25, 26, 27, 29, 30, 32, 32, 32, 32, 33, 34, 35, 36, 37, 40, 40, 41, 42, 43, 45, 46, 48, 48, 48, 49, 50, 51, 52, 54, 56, 56, 57, 58, 59, 61, 62, 64, 64, 64, 64, 64, 65, 66, 67
Offset: 0

Views

Author

Vladimir Shevelev, Mar 19 2012

Keywords

Comments

Theorem. For n>=1, a(n) = A007843(n) - A210255(n).

Examples

			Let n=2. We have modulo 4: 0!=1!==1, 2!==3!==2, for n>=4, n!==0. Thus the distinct residues are 0,1,2. Therefore, a(2) = 3.
		

Crossrefs

Programs

  • Maple
    a:= proc(n) local p, m, i, s;
          p:= 2^n;
          m:= 1;
          s:= {};
          for i to p while m<>0 do m:= m*i mod p; s:=s union {m} od;
          nops(s)
        end:
    seq(a(n), n=0..100);  # Alois P. Heinz, Mar 20 2012
  • Mathematica
    a[n_] := Module[{p = 2^n, m = 1, i, s = {}}, For[i = 1, i <= p && m != 0, i++, m = Mod[m i, p]; s = Union[s, {m}]]; Length[s]];
    a /@ Range[0, 100] (* Jean-François Alcover, Nov 12 2020, after Alois P. Heinz *)

A208129 First differences of A208128.

Original entry on oeis.org

32, 31, 33, 31, 32, 31, 34, 31, 32, 31, 33, 31, 32, 31, 35, 4, 27, 32, 31, 33, 31, 32, 31, 34, 31, 32, 31, 33, 31, 32, 31, 36, 4, 27, 32, 31, 33, 31, 32, 31, 34, 31, 32, 31, 33, 31, 32, 31, 35, 4, 27, 32, 31, 33, 31, 32, 31, 34, 31, 32, 31, 33, 31, 32, 31, 37, 4, 27
Offset: 1

Views

Author

Vladimir Shevelev, Mar 29 2012

Keywords

Crossrefs

Showing 1-3 of 3 results.