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.

A268868 a(n) is the sum of the prime factors (with repetition) of the sum of the preceding terms; a(1)=a(2)=1.

Original entry on oeis.org

1, 1, 2, 4, 6, 9, 23, 25, 71, 73, 48, 263, 265, 120, 911, 913, 552, 192, 85, 27, 35, 53, 296, 66, 455, 289, 48, 188, 5021, 5023, 159, 190, 379, 946, 900, 600, 97, 204, 118, 512, 87, 148, 3886, 23291, 23293, 71, 896, 11812, 60, 41359, 2394, 11508, 5529, 8977, 200
Offset: 1

Views

Author

David James Sycamore, Feb 15 2016

Keywords

Examples

			a(3) = 2 since the sum of all previous terms is 2 and the sum of prime factors of 2 with multiplicity is 2.
a(4) = 4 since the sum of all previous terms is 4 = 2 * 2; the sum of these factors is 4.
a(5) = 6 since the sum of all previous terms is 8 = 2 * 2 * 2; the sum of these factors is 6.
a(6) = 9 since the sum of all previous terms is 14 = 2 * 7. The sum of these factors is 9.
a(7) = 23 since the sum of all previous terms is the prime 23, etc.
		

Crossrefs

Cf. A001414, A269004 (similar sequence with initial terms 1,2).
For records see A271927, A271928.
Cf. A096461.

Programs

  • Maple
    A268868 := proc(n)
        option remember;
        if n <= 2 then
            1;
        else
            A001414(add(procname(i),i=1..n-1)) ;
        end if;
    end proc: # R. J. Mathar, May 06 2016
  • Mathematica
    a = {1, 1}; Do[AppendTo[a, Total@ Flatten@ Apply[Table[#1, {#2}] &, FactorInteger@ Total@ a, {1}]], {53}]; a (* Michael De Vlieger, Feb 15 2016 *)
    Nest[Append[#, Total@ Flatten@ (ConstantArray@@@ FactorInteger@ Total@ #)] &, {1, 1}, 53] (* Michael De Vlieger, Mar 14 2018 *)
  • PARI
    lista(nn) = {va = vector(nn); print1(va[1] = 1, ", "); print1(va[2] = 1, ", "); sp = vecsum(va); for (k=3, nn, f = factor(sp); va[k] = sum(j=1, #f~, f[j,1]*f[j,2]); print1(va[k], ", "); sp += va[k];);} \\ Michel Marcus, Feb 15 2016

Formula

a(n) = A001414(A096461(n-1)); n>=3. - David James Sycamore, Mar 11 2018

Extensions

Name edited and more terms from Michel Marcus, Feb 15 2016

A271928 Positions of records in A268868.

Original entry on oeis.org

1, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 16, 29, 30, 44, 45, 50, 56, 57, 72, 73, 74, 84, 93, 95, 108, 109, 113, 116, 117, 123, 126, 127, 128, 129, 144, 145, 146, 157, 158, 159, 160, 161, 162, 165, 166, 179, 191, 215, 223, 271, 272, 275, 276, 286, 287, 289, 290, 296
Offset: 1

Views

Author

N. J. A. Sloane, May 04 2016

Keywords

Crossrefs

Showing 1-2 of 2 results.