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

A212483 Smallest number k such that the sum of the distinct prime divisors of k equals n times a prime.

Original entry on oeis.org

2, 21, 14, 15, 21, 35, 33, 39, 65, 51, 57, 95, 69, 115, 86, 87, 93, 155, 217, 111, 122, 123, 129, 215, 141, 235, 158, 159, 265, 371, 177, 183, 194, 427, 201, 335, 213, 219, 365, 511, 237, 395, 249, 415, 446, 267, 278, 623, 1246, 291, 302, 303, 309, 515, 321
Offset: 1

Views

Author

Michel Lagneau, Jun 02 2012

Keywords

Comments

Smallest k such that sopf(k) = n*p, p prime.

Examples

			a(5) = 21 because 21 = 3*7 and 3 + 7 = 10 = 5*2 where 2 is prime.
		

Crossrefs

Programs

  • Maple
    with (numtheory):
    sopf:= proc(n) option remember;
              add(i, i=factorset(n))
           end:
    a:= proc(n) local k, p;
          for k from 2 while irem(sopf(k), n, 'p')>0 or
            not isprime(p) do od; k
        end:
    seq (a(n), n=1..100);  # Alois P. Heinz, Jun 03 2012
  • Mathematica
    snk[n_]:=Module[{k=1},While[!PrimeQ[(Total[Transpose[ FactorInteger[k]] [[1]]])/n],k++];k]; Array[snk,60] (* Harvey P. Dale, Jun 24 2013 *)
Showing 1-1 of 1 results.