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-10 of 18 results. Next

A046133 Primes p such that p + 12 is also prime.

Original entry on oeis.org

5, 7, 11, 17, 19, 29, 31, 41, 47, 59, 61, 67, 71, 89, 97, 101, 127, 137, 139, 151, 167, 179, 181, 199, 211, 227, 229, 239, 251, 257, 269, 271, 281, 337, 347, 367, 389, 397, 409, 419, 421, 431, 449, 467, 479, 487, 491, 509, 557, 587, 601, 607, 619, 631, 641
Offset: 1

Views

Author

Keywords

Comments

Using the Elliott-Halberstam conjecture, Maynard proves that there are an infinite number of primes here. - T. D. Noe, Nov 26 2013

References

  • P. D. T. A. Elliott and H. Halberstam, A conjecture in prime number theory, Symposia Mathematica, Vol. IV (INDAM, Rome, 1968/69), pages 59-72, Academic Press, London, 1970.

Crossrefs

Different from A015917.

Programs

Formula

a(n) >> n log^2 n. \\ Charles R Greathouse IV, Apr 28 2015

A054905 Smallest composite x such that sigma(x) + 2n = sigma(x + 2n).

Original entry on oeis.org

434, 305635357, 104, 27, 195556, 65, 12, 39, 20, 56, 916, 80, 212282, 57, 44, 106645, 52, 125
Offset: 1

Views

Author

Labos Elemer May 23 2000

Keywords

Comments

a(19) > 4293000000, if it exists. - Jud McCranie, May 25 2000
a(19) > 10^11, if it exists. - Charles R Greathouse IV, Oct 26 2022

Examples

			a(5) corresponds to n=3+2=5, d=2n=10 and the smallest composite integer is 195556. The next solution is 1152136225.
		

Crossrefs

Programs

  • PARI
    a(n)=forcomposite(x=3,10^66,if(sigma(x)+2*n==sigma(x+2*n),return(x)));
    for(n=1,66,print1(a(n),", ")); \\ Joerg Arndt, Nov 15 2014
    
  • PARI
    a19(lim,startAt=39)=startAt=ceil(startAt); my(v=vectorsmall(38),i=(startAt-1)%38); forfactored(n=startAt,lim\1+38, my(t=sigma(n)); if(i++>38,i=1); if(t==v[i]+38, return(n[1]-38)); v[i]=if(vecsum(n[2][,2])>1,t,0)) \\ Charles R Greathouse IV, Oct 25 2022

Extensions

Description corrected by Jud McCranie, May 25 2000

A015915 Numbers k such that sigma(k) + 8 = sigma(k+8).

Original entry on oeis.org

3, 5, 11, 23, 27, 29, 53, 59, 71, 89, 101, 131, 149, 173, 191, 233, 263, 269, 359, 389, 401, 431, 449, 479, 491, 563, 569, 593, 599, 653, 683, 701, 719, 743, 761, 821, 911, 929, 983, 1013, 1031, 1061, 1109, 1163, 1193, 1223, 1229, 1283, 1289
Offset: 1

Views

Author

Keywords

Comments

Different from A023202. Below 1000000 four composites were found [27, 1615, 1885, 218984] satisfying the "sigma(k) + 8 = sigma(k+8)" relation, together with more than 8000 primes. - Labos Elemer, May 23 2000

Examples

			sigma(27) + 8 = 48 = sigma(27+8), so 27 is in the sequence.
		

Crossrefs

Composite solutions are in A059118.

Programs

A015916 Numbers k such that sigma(k) + 10 = sigma(k+10).

Original entry on oeis.org

3, 7, 13, 19, 31, 37, 43, 61, 73, 79, 97, 103, 127, 139, 157, 163, 181, 223, 229, 241, 271, 283, 307, 337, 349, 373, 379, 409, 421, 433, 439, 457, 499, 547, 577, 607, 631, 643, 673, 691, 709, 733, 751, 787, 811, 829, 853, 877, 919, 937, 967, 1009
Offset: 1

Views

Author

Keywords

Comments

Different from A023203. Below 1000000 the only composite number here is 195556: sigma(195556) + 10 = 342230 + 10 = sigma(195566). - Labos Elemer, May 23 2000

Crossrefs

Programs

  • Mathematica
    Select[Range[2000], DivisorSigma[1, #] + 10==DivisorSigma[1, # + 10] &] (* Vincenzo Librandi, Mar 10 2014 *)
    Select[Partition[DivisorSigma[1,Range[1100]],11,1],#[[1]]+10==#[[-1]]&][[All,1]]-1 (* Harvey P. Dale, May 20 2021 *)

A054906 Smallest number x such that sigma(x+2n) = sigma(x)+2n (first definition).

Original entry on oeis.org

3, 3, 5, 3, 3, 5, 3, 3, 5, 3, 7, 5, 3, 3, 7, 5, 3, 5, 3, 3, 5, 3, 7, 5, 3, 7, 5, 3, 3, 7, 5, 3, 5, 3, 3, 7, 5, 3, 5, 3, 7, 5, 3, 13, 7, 5, 3, 5, 3, 3, 5, 3, 3, 5, 3, 19, 13, 11, 13, 7, 5, 3, 5, 3, 7, 5, 3, 3, 11, 11, 7, 5, 3, 3, 7, 5, 3, 7, 5, 3, 5, 3, 7, 5, 3, 7, 5, 3, 3, 11, 11, 7, 5, 3, 3, 5, 3, 3, 13
Offset: 1

Views

Author

Labos Elemer, May 23 2000

Keywords

Comments

Least (prime) solutions for phi(x+2n)=phi(x)+2n seems to be identical to this sequence, while prime solutions are indeed identical to this sequence.
2nd definition = smallest number x such that phi(x+2n)=phi(x)+2n.
3rd definition = smallest primes p such that p+2n=q prime (A020483).
The 3 definitions are identical or conjectured to be identical.
The definitions are not identical if we do not take the smallest numbers. These smallest solutions are believed to be always prime numbers.
Duplicate of A020483, assuming that the 3rd definition is also correct. - R. J. Mathar, Apr 26 2015
If it can be proved that all these definitions are identical, then this entry should be merged with A020483. - N. J. A. Sloane, Feb 06 2017

Examples

			n-th primes 2,3,5,7,11,13, are solutions to sigma(x+2n)=2n+sigma(x) at 2n=2,6,22,116,88.
		

References

  • Sivaramakrishnan,R.(1989):Classical Theory of Arithmetical Functions. Marcel Dekker,Inc., New York.

Crossrefs

Programs

  • Maple
    A054906 := proc(n)
        local x;
        for x from 0 do
            if numtheory[sigma](x+2*n) = numtheory[sigma](x)+2*n then
                return x;
            end if;
        end do:
    end proc:
    seq(A054906(n),n=1..40); # R. J. Mathar, Sep 23 2016
  • Mathematica
    Table[x = 1; While[DivisorSigma[1, x + 2 n] != DivisorSigma[1, x] + 2 n, x++]; x, {n, 100}] (* Michael De Vlieger, Feb 05 2017 *)
  • PARI
    a(n) = my(x = 1); while(sigma(x+2*n) != sigma(x)+2*n, x++); x; \\ Michel Marcus, Dec 17 2013

Formula

Minimal solutions to A000203(x+2n)=A000203(x)+2n or to A000010(x+2n)=A000010(x)+2n or to p+2n=q; p, q primes, a(n)=p.
a(n) <= A054905(n). - R. J. Mathar, Apr 28 2015

A054902 Composite numbers n such that sigma(n)+12 = sigma(n+12).

Original entry on oeis.org

65, 170, 209, 1394, 3393, 4407, 4556, 11009, 13736, 27674, 38009, 38845, 47402, 76994, 157994, 162393, 184740, 186686, 209294, 680609, 825359, 954521, 1243574, 2205209, 3515609, 4347209, 5968502, 6539102, 6916241, 8165294, 10352294, 10595009, 10786814
Offset: 1

Views

Author

Labos Elemer, May 23 2000

Keywords

Examples

			n = 65, sigma(65)+12 = 84+12 = 96 = sigma(65+12) = sigma(77).
n = 11009, sigma(11009)+12 = 11220+12 = 11232 = sigma(11009+12) = sigma(11021).
		

Crossrefs

Complement of A046133 with respect to A015917.

Programs

  • PARI
    isok(n) = !isprime(n) && ((sigma(n)+12) == sigma(n+12)); \\ Michel Marcus, Dec 18 2013

Extensions

More terms from Jud McCranie, May 24 2000
Three more terms from Michel Marcus, Dec 18 2013

A054904 x = a(n) is the smallest composite number such that sigma(x+6n) = sigma(x)+6n, where sigma = A000203.

Original entry on oeis.org

104, 65, 20, 80, 44, 125, 45, 63, 40, 99, 56, 70, 296, 125, 88, 110, 104, 145, 212, 182, 80, 170, 333, 105, 369, 185, 184, 135, 180, 301, 356, 185, 1859, 329, 176, 195, 4916, 434, 612, 287, 140, 185, 776, 255, 524, 413, 344, 205, 272, 329, 567, 215, 320, 469
Offset: 1

Views

Author

Labos Elemer, May 23 2000

Keywords

Comments

If sigma(x+d) = sigma(x)+d and d = 6k, then composite solutions seem to be more frequent and arise sooner.
a(725) > 3*10^11 (if it exists). - Donovan Johnson, Sep 23 2013

Examples

			n = 20, 6n = 120, a(20) = 182, sigma(182)+120 = 336+120 = 456 = sigma(182+120) = sigma(302).
		

Crossrefs

Programs

  • Mathematica
    Table[x = 4; While[Nand[CompositeQ@ x, DivisorSigma[1, x + 6 n] == DivisorSigma[1, x] + 6 n], x++]; x, {n, 54}] (* Michael De Vlieger, Feb 18 2017 *)
  • PARI
    /* finds first 696 terms */ mx=7695851; s=vector(mx); for(j=4, mx, if(isprime(j)==0, s[j]=sigma(j))); for(n=1, 696, n6=n*6; for(x=4, 7691753, if(s[x]>0, if(s[x+n6]==s[x]+n6, write("b054904.txt", n " " x); next(2))))) /* Donovan Johnson, Sep 23 2013 */

Formula

sigma(x+6n) = sigma(x)+6n, a(n) = min(x) and it is composite.

A054903 Composite numbers n such that sigma(n)+6 = sigma(n+6), where sigma=A000203.

Original entry on oeis.org

104, 147, 596, 1415, 4850, 5337, 370047, 1630622, 35020303, 120221396, 3954451796, 742514284703
Offset: 1

Views

Author

Labos Elemer, May 23 2000

Keywords

Comments

Complement of A023201 with respect to A015914.
Intersection of A015914 and A018252.
Below 1000000 there are only 7 such composite numbers, compared with more than 16000 primes.
a(13) > 10^13. - Giovanni Resta, Jul 11 2013

Examples

			n=104, sigma(104)+6 = 210+6 = 216 = sigma(104+6) = sigma(110).
a(4) = 1415 = 5*283, 1415+6 = 1421 = 7*7*29:
sigma(1415) = 1+5+283+1415 = 1704,
sigma(1421) = 1+7+29+49+203+1421 = 1710 = sigma(1415)+6.
		

References

  • J.-M. De Koninck, Ces nombres qui nous fascinent, Entry 104, p. 37, Ellipses, Paris 2008.

Crossrefs

Programs

Extensions

More terms from Jud McCranie, May 25 2000
New definition from Reinhard Zumkeller, Jan 27 2009
Edited by N. J. A. Sloane, Jan 31 2009 at the suggestion of R. J. Mathar.
a(12) from Giovanni Resta, Jul 11 2013

A055009 Smallest composite number x such that sigma(x + prime(n)#) = sigma(x) + prime(n)#, where prime(n)# = A002110(n) and sigma is A000203.

Original entry on oeis.org

434, 104, 44, 176, 2924, 34256, 83509, 539081, 254963216, 14600541172, 201346999808
Offset: 1

Views

Author

Labos Elemer, May 31 2000

Keywords

Comments

a(12) <= 14841476269604. a(13) <= 314064788156864. - Donovan Johnson, Mar 17 2013

Examples

			a(7) = 83509 = 37*37*61, sigma(83509)+510510 = 87234+510510 = sigma(83509+510510) = sigma(594019) = 597744.
		

Crossrefs

The prime solutions for particular sigma(x+primorial) = sigma(x)+primorial equations are in A049481-A049485.

Programs

  • PARI
    a(n)=my(P=prod(i=1,n,prime(i)),x=4); while(isprime(x) || sigma(x+P) != sigma(x)+P, x++); x \\ Charles R Greathouse IV, Feb 14 2013

Extensions

a(9)-a(10) from Donovan Johnson, Oct 15 2008
a(11) from Donovan Johnson, Mar 08 2013

A063679 Numbers k such that (3^k - 7)/2 is prime.

Original entry on oeis.org

4, 12, 18, 26, 106, 164, 246, 956, 2554, 3350, 6496, 8706, 9008, 15398, 15490, 20408, 39240, 41060, 41842, 58358, 60346, 82214, 134972, 194014, 344204, 587712, 778070
Offset: 1

Views

Author

Jud McCranie, Jul 28 2001

Keywords

Comments

x = 3^k is a solution to sigma(x - 7) = sigma(x) - 7 when (3^k - 7)/2 is prime.
a(28) > 10^6

Examples

			(3^4 - 7)/2 = 37 is prime, so 4 is in the sequence.
		

Crossrefs

Programs

  • Maple
    with(numtheory):i := 0:x := 1:while i < 1000 do i := i+1:x := 3*x: if isprime((x-7)/2) then print(i):fi:od:
  • Mathematica
    Do[ If[ PrimeQ[ (3^n - 7)/2 ], Print[n] ], {n, 2, 5500} ]
    Select[Range[2, 10000], PrimeQ[((3^# - 7)/2)] &] (* Vincenzo Librandi, Sep 30 2012 *)
  • PARI
    is(n)=ispseudoprime((3^n-7)/2) \\ Charles R Greathouse IV, May 22 2017

Extensions

More terms from Robert G. Wilson v, Aug 02 2001
0, 1 removed and a(11)-a(13) added from Vincenzo Librandi, Sep 30 2012
a(14)-a(17) from Seth A. Troisi, Oct 17 2022
a(17) corrected, a(18)-a(25) from Seth A. Troisi, Oct 29 2022
a(26)-a(27) from Seth A. Troisi, Nov 28 2022
Showing 1-10 of 18 results. Next