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.

A115904 Numbers k such that k + sigma(k) is a triangular number.

Original entry on oeis.org

7, 10, 66, 136, 145, 196, 198, 234, 270, 438, 495, 528, 592, 606, 855, 910, 1045, 1158, 1428, 2208, 2718, 2922, 3016, 3663, 3808, 3916, 4506, 4975, 5043, 5136, 5598, 6366, 6600, 7080, 7498, 7821, 8172, 8200, 8217, 8814, 9318, 9730, 9738
Offset: 1

Views

Author

Giovanni Resta, Feb 06 2006

Keywords

Examples

			234 + sigma(234) = 780 = T(39).
		

Crossrefs

Programs

  • Mathematica
    trnoQ[n_]:=IntegerQ[(Sqrt[1+8n]-1)/2]; Select[Range[10000], trnoQ[#+ DivisorSigma[ 1,#]]&] (* Harvey P. Dale, Apr 26 2014 *)
  • PARI
    isok(n) = ispolygonal(n + sigma(n), 3); \\ Michel Marcus, Jan 25 2014

A115908 Numbers k such that phi(k) + prime(k) is a triangular number.

Original entry on oeis.org

1, 5, 6, 15, 23, 141, 150, 258, 317, 340, 359, 378, 471, 503, 768, 1363, 2175, 2516, 3285, 3342, 3815, 3905, 4385, 4748, 5385, 5976, 6026, 6900, 7048, 7151, 7411, 7698, 8251, 8310, 8828, 10182, 10461, 12022, 12508, 13722, 13840, 15456, 16582
Offset: 1

Views

Author

Giovanni Resta, Feb 06 2006

Keywords

Examples

			phi(503) + prime(503) = 4095 = T(90).
		

Crossrefs

Programs

  • Mathematica
    With[{trnos = Accumulate[Range[5000]]}, Select[Range[20000], MemberQ[trnos, (EulerPhi[#] + Prime[#])] &]] (* Harvey P. Dale, Jan 12 2011 *)
    Select[Range[20000],OddQ[Sqrt[8(EulerPhi[#]+Prime[#])+1]]&] (* Harvey P. Dale, Dec 08 2024 *)
  • PARI
    isok(n) = ispolygonal(prime(n) + eulerphi(n), 3); \\ Michel Marcus, Jan 25 2014
Showing 1-2 of 2 results.