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

A023508 Sum of exponents in prime-power factorization of n-th prime - 1.

Original entry on oeis.org

0, 1, 2, 2, 2, 3, 4, 3, 2, 3, 3, 4, 4, 3, 2, 3, 2, 4, 3, 3, 5, 3, 2, 4, 6, 4, 3, 2, 5, 5, 4, 3, 4, 3, 3, 4, 4, 5, 2, 3, 2, 5, 3, 7, 4, 4, 4, 3, 2, 4, 4, 3, 6, 4, 8, 2, 3, 5, 4, 5, 3, 3, 4, 3, 5, 3, 4, 6, 2, 4, 6, 2, 3, 4, 5, 2, 3, 5, 6, 5, 3, 5, 3, 7, 3, 3, 7, 5, 4, 4, 2, 2, 6, 4, 3, 2, 3, 5, 4
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

Formula

a(n) = A001222(A006093(n)). - R. J. Mathar, Feb 06 2019

A210934 Sum of prime factors of prime(n)+1 (counted with multiplicity).

Original entry on oeis.org

3, 4, 5, 6, 7, 9, 8, 9, 9, 10, 10, 21, 12, 15, 11, 11, 12, 33, 21, 12, 39, 13, 14, 13, 16, 22, 19, 13, 18, 24, 14, 18, 28, 16, 15, 25, 81, 45, 16, 34, 15, 22, 15, 99, 19, 16, 57, 17, 26, 30, 21, 16, 24, 17, 48, 20, 16, 25, 141, 52, 75, 19, 22, 22, 159, 58, 87
Offset: 1

Views

Author

Paolo P. Lava, Mar 30 2012

Keywords

Comments

From an idea of Michael B. Porter.

Examples

			prime(8) = 19, and 19+1 = 20 = 2*2*5, so a(8) = 2+2+5 = 9.
		

Crossrefs

Programs

  • Maple
    with(numtheory);
    P:=proc(i)
    local a,k,n;
    for n from 1 to i do
      a:=ifactors(ithprime(n)+1)[2]; print(add(a[k][1]*a[k][2],k=1..nops(a)));
    od; end:
    # alternative
    A210934 := proc(n)
        local p,pplus,f ;
        p := ithprime(n) ;
        pplus := ifactors(p+1)[2] ;
        add(op(1,f)*op(2,f),f=pplus) ;
    end proc:
    seq(A210934(n),n=1..300) ; # R. J. Mathar, May 25 2022

Formula

a(n) = A001414(A008864(n)). - Michel Marcus, Oct 05 2013

A127305 Primes p such that p + (sum of the prime factors of p-1) + (sum of prime factors of p+1) is prime.

Original entry on oeis.org

2, 13, 47, 71, 101, 151, 193, 239, 241, 293, 331, 337, 359, 383, 397, 401, 421, 463, 487, 557, 577, 709, 773, 797, 821, 929, 1019, 1031, 1069, 1093, 1103, 1181, 1217, 1249, 1327, 1367, 1423, 1499, 1571, 1759, 1787, 1789, 1831, 1871, 1877, 1913, 1933, 2053
Offset: 1

Views

Author

J. M. Bergot, Mar 28 2007

Keywords

Comments

The primes are taken "with multiplicity".

Examples

			2 is a term, since 2 + 0 + 3 = 5 is a prime.
13 is a term since 13 + (2+2+3) + (2+7) = 29 is prime, i.e. the prime factors are added with multiplicity.
151 is prime, 150 = 2*3*5*5, 152 = 2*2*2*19. 151 + 2+3+5+5 + 2+2+2+19 = 191 is prime, hence 151 is a term.
		

Crossrefs

Programs

  • Magma
    [ p: p in PrimesInInterval(3, 2100) | IsPrime(&+[ &+[ k[1]*k[2]: k in Factorization(n)]: n in [p-1..p+1] ] ) ]; /* Klaus Brockhaus, Apr 06 2007 */
  • Maple
    spf:= proc(n) local t; add(t[1]*t[2], t = ifactors(n)[2]) end proc:
    filter:= proc(p) isprime(p) and isprime(p+spf(p-1)+spf(p+1)) end proc:
    select(filter, [$2..10000]); # Robert Israel, May 25 2022
  • Mathematica
    pspfQ[n_] := PrimeQ[n + Total[Flatten[Table[#[[1]], {#[[2]]}] & /@ Flatten[FactorInteger[n + {1,-1}], 1] ] ] ]; {2}~Join~Select[Prime[Range[400]], pspfQ] (* Harvey P. Dale, Jan 08 2015, corrected by Michael De Vlieger, May 25 2022 *)

Extensions

Edited and extended by Klaus Brockhaus, Apr 06 2007
Edited by N. J. A. Sloane, May 25 2022
Showing 1-3 of 3 results.