OFFSET
1,2
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..1000
EXAMPLE
21 = 3 * 7 and 0.3 + 0.7 = 1;
3128 = 2^3 * 17 * 23 and 3*0.2 + 0.17 + 0.23 = 1.
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 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Sep 15 2016
STATUS
approved