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.

A115897 Numbers k such that sigma(k) + phi(k) is a palindrome.

Original entry on oeis.org

1, 2, 3, 4, 10, 11, 21, 49, 92, 101, 115, 131, 145, 186, 200, 201, 206, 207, 221, 226, 227, 240, 272, 302, 310, 313, 327, 342, 344, 370, 374, 388, 403, 406, 409, 413, 419, 425, 439, 449, 880, 948, 1015, 1055, 1132, 1165, 1385, 1443, 1680, 1755, 1785
Offset: 1

Views

Author

Giovanni Resta, Feb 06 2006

Keywords

Examples

			sigma(1055) + phi(1055) = 1272 + 840 = 2112.
		

Crossrefs

Programs

  • Mathematica
    Select[Range@ 1800, Reverse@ # == # &@ IntegerDigits[DivisorSigma[1, #] + EulerPhi@ #] &] (* Michael De Vlieger, Jul 22 2016 *)
    Select[Range[2000],PalindromeQ[DivisorSigma[1,#]+EulerPhi[#]]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 29 2020 *)
  • PARI
    ispal(n)=n=digits(n); Vecrev(n)==n
    is(n,f=factor(n))=ispal(sigma(f)+eulerphi(f)) \\ Charles R Greathouse IV, Jul 22 2016