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-2 of 2 results.

A274422 Numbers m such that there exists a j for which m = Sum_{k=1..j} (m mod k), where k runs through the largest j primes less than m.

Original entry on oeis.org

13, 17, 20, 23, 24, 34, 40, 82, 126, 200, 612, 1154, 1692, 2434, 2806, 3060, 3142, 4052, 4460, 4596, 5020, 5908, 6424, 7304, 7596, 8030, 8040, 9044, 11398, 12254, 12914, 13412, 13716, 16006, 16800, 18560, 22438, 23140, 24424, 24746, 25706, 28318, 29272, 30580
Offset: 1

Views

Author

Paolo P. Lava, Jun 21 2016

Keywords

Examples

			13 mod 11 + 13 mod 7 + 13 mod 5 + 13 mod 3 + 13 mod 2 = 2 + 6 + 3 + 1 + 1 = 13;
40 mod 37 + 40 mod 31 + 40 mod 29 + 40 mod 23 = 3 + 9 + 11 + 17 = 40.
		

Crossrefs

Programs

  • Maple
    P:=proc(q) local a,b,k,n; for n from 3 to q do a:=0; b:=prevprime(n);
    while n>a do a:=a+(n mod b); if b>2 then b:=prevprime(b); else break; fi; od;
    if n=a then print(n); fi; od; end: P(10^9);

A274423 Let s(n,j) be Sum_{i=1..j} (prime(primepi(n) + i) mod n). Numbers n such that there exists j with s(n,j) = n.

Original entry on oeis.org

2, 3, 4, 6, 8, 44, 48, 66, 90, 108, 156, 206, 284, 854, 1002, 1188, 1194, 1212, 1320, 2234, 2460, 2792, 3336, 3478, 7096, 7164, 7218, 7236, 7752, 8304, 9164, 10272, 12090, 12594, 13322, 15530, 17038, 17162, 18026, 18212, 20412, 20494, 21966, 23374, 23518, 24664
Offset: 1

Views

Author

Paolo P. Lava, Jun 21 2016

Keywords

Examples

			47 mod 44 + 53 mod 44 + 59 mod 44 + 61 mod 44 = 3 + 9 + 15 + 17 = 44.
		

Crossrefs

Programs

  • Maple
    P:=proc(q) local a,b,k,n; for n from 2 to q do a:=0;
    b:=nextprime(n); while n>a do a:=a+(b mod n); b:=nextprime(b); od;
    if n=a then print(n); fi; od; end: P(10^9);

Extensions

Name corrected by David A. Corneth, Jun 22 2016
Showing 1-2 of 2 results.