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

A115884 Numbers k such that the k-th prime plus k gives a palindrome.

Original entry on oeis.org

1, 2, 3, 4, 22, 45, 66, 71, 75, 88, 94, 97, 103, 105, 116, 140, 331, 432, 454, 565, 646, 703, 795, 1042, 1108, 1168, 1248, 1334, 1644, 1652, 1864, 1874, 1900, 2181, 2295, 2323, 2485, 2509, 2585, 2679, 2835, 2899, 2923, 3052, 3360, 3372, 3396, 3404
Offset: 1

Views

Author

Giovanni Resta, Feb 06 2006

Keywords

Examples

			prime(103) + 103 = 666, a palindrome; so 103 is a term.
		

Crossrefs

Programs

  • Maple
    filter:= proc(n) local p,L;
       p:= ithprime(n)+n;
       L:= convert(p,base,10);
       ListTools:-Reverse(L) = L
    end proc:
    select(filter, [$1..10000]); # Robert Israel, Nov 04 2014
  • Mathematica
    palQ[n_]:=Module[{idn=IntegerDigits[n]},idn==Reverse[idn]]; With[ {nn=3500}, Rest[Flatten[Position[Total/@Thread[{Prime[Range[nn]], Range[nn]}],?(palQ)]]]] (* _Harvey P. Dale, Oct 11 2011 *)
    palQ[n_] := Reverse[x = IntegerDigits[n]] == x; Select[Range[3405], palQ[Prime[#] + #] &] (* Jayanta Basu, Jun 24 2013 *)
  • PARI
    ispal(n) = my(e=digits(n));e == Vecrev(e) \\ A002113
    for(k=1,10^6,b=k+prime(k);if(ispal(b),print1(k,", "))) \\ Alexandru Petrescu, Jun 15 2022
    
  • Python
    from sympy import nextprime
    def ispal(n): s = str(n); return s == s[::-1]
    def agen(): # generator of terms
        k, pk = 1, 2
        while True:
            if ispal(k+pk): yield k
            k, pk = k+1, nextprime(pk)
    g = agen()
    print([next(g) for n in range(1, 51)]) # Michael S. Branicky, Jun 15 2022

A115890 Numbers k such that k*sigma(k) is a palindrome.

Original entry on oeis.org

1, 2, 141, 517, 1089, 1621, 1651, 2359, 17529, 20086, 124282, 1664338, 72452549, 1503846167, 14457164981, 17107594211, 17458514913, 24556027479
Offset: 1

Views

Author

Giovanni Resta, Feb 06 2006

Keywords

Comments

a(19) > 5*10^10. - Donovan Johnson, Jul 22 2011

Examples

			1664338*sigma(1664338) = 1664338*2688588 = 4474719174744.
		

Crossrefs

Extensions

a(13) from Donovan Johnson, Dec 02 2009
a(14)-a(18) from Donovan Johnson, Jul 22 2011

A115885 The n-th prime minus n gives a palindrome.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 8, 32, 55, 57, 61, 71, 90, 95, 99, 114, 116, 126, 135, 137, 171, 173, 182, 230, 349, 399, 415, 457, 488, 610, 653, 739, 903, 951, 997, 1010, 1036, 1050, 1231, 1396, 1478, 1508, 1542, 1612, 1660, 1906, 1948, 2032, 2092, 2152, 2242
Offset: 1

Views

Author

Giovanni Resta, Feb 06 2006

Keywords

Examples

			p(126)-126=575.
		

Crossrefs

Programs

  • Mathematica
    palQ[n_]:=Module[{digs=IntegerDigits[Prime[n]-n]},digs==Reverse[digs]]; Select[Range[2400],palQ] (* Harvey P. Dale, Dec 15 2011 *)

A115891 Numbers k such that k times phi(k) is a palindrome.

Original entry on oeis.org

1, 2, 3, 4, 17, 21, 206, 296, 309, 314, 392, 412, 444, 3016, 3074, 3182, 3552, 3632, 4944, 12998, 52009, 296448, 2306507, 2343809, 2958948, 3842106, 4419666, 14697047, 15137567, 21150749, 25829523, 29916818, 41798278, 157946358, 215882549, 318635303, 442991424
Offset: 1

Views

Author

Giovanni Resta, Feb 06 2006

Keywords

Examples

			25829523 * phi(25829523) = 25829523 * 17219628 = 444774777477444.
		

Crossrefs

Extensions

a(34)-a(37) from Donovan Johnson, Feb 17 2013

A084121 Primes p_n such that n*p_n is a palindrome.

Original entry on oeis.org

2, 3, 11, 37, 53, 33827, 39119, 9260479, 10708871, 23858227, 65941772591
Offset: 1

Views

Author

Giovanni Resta, May 14 2003

Keywords

Comments

a(12) > 10^14. [Giovanni Resta, Jun 28 2013]

Examples

			The 4119th prime 39119 is in the sequence since 4199*39119 = 161131161 is a palindrome.
		

Crossrefs

Programs

  • Mathematica
    palQ[n_]:=FromDigits[Reverse[IntegerDigits[n]]]==n; t={}; Do[p=Prime[n]; If[palQ[p*n],AppendTo[t,p]],{n,15*10^5}]; t (* Jayanta Basu, May 11 2013 *)
    Module[{nn=2763*10^6},Select[Thread[{Range[nn],Prime[Range[nn]]}],PalindromeQ[ Times@@ #]&]][[All,2]] (* Requires Mathematica version 10 or later *) (* The program will take a long time to run. *) (* Harvey P. Dale, Jul 16 2020 *)

A084123 Palindromic numbers which are equal to a number n multiplied by the n-th prime.

Original entry on oeis.org

2, 6, 55, 444, 848, 122555221, 161131161, 5729689869275, 7587952597857, 35757255275753, 182196497222794691281
Offset: 1

Views

Author

Giovanni Resta, May 14 2003

Keywords

Comments

a(12) > 4.3*10^26. [Giovanni Resta, Jun 28 2013]

Examples

			The palindrome 161131161 is in the sequence since 39119 is the 4119th prime and 4199*39119 = 161131161.
		

Crossrefs

Programs

  • Mathematica
    palQ[n_]:=FromDigits[Reverse[IntegerDigits[n]]]==n; t={}; Do[If[palQ[x=n*Prime[n]],AppendTo[t,x]],{n,15*10^5}]; t (* Jayanta Basu, May 11 2013 *)

A115892 Numbers k such that sigma(k)*phi(k) is a palindrome.

Original entry on oeis.org

1, 2, 3, 69, 219, 221, 224, 254, 1772, 2181, 15463, 50807, 63551, 94236, 161257, 602962, 2105689, 8371756, 2115856505, 2539027806, 5472276593, 6819131191, 15442198064, 16190055003, 46870943027
Offset: 1

Views

Author

Giovanni Resta, Feb 06 2006

Keywords

Comments

a(26) > 5*10^10. 205447718981 is also a term. - Donovan Johnson, Sep 30 2011

Examples

			sigma(15463)*phi(15463) = 18056*12972 = 234222432.
		

Crossrefs

Extensions

a(19)-a(25) from Donovan Johnson, Sep 30 2011

A115893 Numbers k such that sigma(k)*prime(k) is a palindrome.

Original entry on oeis.org

1, 2, 5, 4813, 47619
Offset: 1

Views

Author

Giovanni Resta, Feb 06 2006

Keywords

Comments

No additional terms up to 5*10^6. - Harvey P. Dale, Sep 14 2012

Examples

			sigma(47619)*prime(47619) = 82992*580477 = 48174947184.
		

Crossrefs

Programs

  • Mathematica
    dspQ[n_]:=Module[{c=IntegerDigits[DivisorSigma[1,n]Prime[n]]},c == Reverse[c]]; Select[Range[50000],dspQ] (* Harvey P. Dale, Sep 14 2012 *)

A115894 Numbers k such that phi(k)*prime(k) is a palindrome.

Original entry on oeis.org

1, 2, 5, 16, 534, 7412, 17280, 146533, 633932, 1424705, 5879645
Offset: 1

Views

Author

Giovanni Resta, Feb 06 2006

Keywords

Examples

			phi(17280)*prime(17280) = 4608*191461 = 882252288.
		

Crossrefs

Programs

  • Mathematica
    pppQ[n_]:=Module[{c=IntegerDigits[EulerPhi[n]Prime[n]]},c == Reverse[c]]; Select[Range[6000000],pppQ] (* Harvey P. Dale, Aug 01 2012 *)
Showing 1-9 of 9 results.