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.

A276700 Numbers n such that Sum_{p|n} 0.p is an integer where p ranges over the prime divisors, with multiplicity, of n.

Original entry on oeis.org

1, 21, 25, 30, 32, 36, 392, 441, 525, 560, 625, 630, 672, 750, 756, 800, 900, 960, 979, 1024, 1080, 1152, 1215, 1296, 1411, 1458, 1463, 1547, 1742, 1947, 2059, 2090, 2210, 2318, 2405, 2419, 2444, 2491, 2508, 2552, 2652, 2703, 2871, 2886, 2924, 2945, 3116, 3128
Offset: 1

Views

Author

Paolo P. Lava, Sep 15 2016

Keywords

Examples

			21 = 3 * 7 and 0.3 + 0.7 = 1;
3128 = 2^3 * 17 * 23 and 3*0.2 + 0.17 + 0.23 = 1.
		

Crossrefs

Programs

  • Maple
    with(numtheory): P:= proc(q) local a,k,n;
    for n from 1 to q do a:=ifactors(n)[2];
    if type(add(a[k][2]*a[k][1]/10^(ilog10(a[k][1])+1),k=1..nops(a)),integer)
    then print(n); fi; od; end: P(10^9);
  • Mathematica
    paiQ[n_]:=IntegerQ[Total[#/10^IntegerLength[#]&/@Flatten[Table[#[[1]], #[[2]]]&/@ FactorInteger[n]]]]; Join[{1},Select[Range[3200],paiQ]] (* Harvey P. Dale, Apr 02 2020 *)