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.

A212849 Numbers whose sum of prime factors (counted with multiplicity) is a triangular number.

Original entry on oeis.org

1, 3, 8, 9, 21, 25, 26, 30, 32, 36, 38, 44, 68, 86, 105, 106, 112, 115, 125, 126, 138, 150, 155, 160, 164, 178, 180, 186, 187, 192, 195, 203, 206, 208, 216, 231, 234, 243, 266, 275, 290, 299, 302, 305, 323, 330, 338, 343, 348, 352, 365, 366, 380, 396, 404, 413
Offset: 1

Views

Author

Jonathan Vos Post, May 28 2012

Keywords

Comments

This is to A212831 Numbers whose sum of prime factors is a square (counted with multiplicity) as A000290 squares are to A000217 triangular numbers.

Examples

			sopfr(21) = sum of primes dividing 21 (with repetition) = 10, which is the  4th triangular number, so 21 is in this sequence.
The number 1 is here because the sum of its prime factors is 0, which is a triangular number.
		

Crossrefs

Programs

  • Mathematica
    triangularQ[n_] := IntegerQ[Sqrt[1 + 8*n]]; fQ[n_] := Module[{p, e}, {p, e} = Transpose[FactorInteger[n]]; triangularQ[Dot[p, e]]]; Join[{1}, Select[Range[2, 500], fQ]] (* T. D. Noe, May 30 2012 *)
  • PARI
    sopfr(n) = my(f=factor(n)); sum(k=1, matsize(f)[1], f[k, 1]*f[k, 2]); \\ A001414
    isok(n) = ispolygonal(sopfr(n), 3); \\ Michel Marcus, May 02 2018

Formula

{k such that A001414(k) = sopfr(k) is in A000217}.