OFFSET
1,2
COMMENTS
Similar to A227001.
The primitive values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 111, 142, 1111, 1142,...
284 is not a primitive value because each digit equals two times each digit of 142.
214 is not a primitive value because 214 is a cyclic permutation of 142.
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..1000
EXAMPLE
3461 is in the sequence because 1/6 + 6/4 + 4/3 + 3/1 = 6.
MAPLE
with(numtheory):P:=proc(q) local a, b, c, k, n, ok; for n from 1 to q do ok:=1; a:=n;
for k from 1 to ilog10(n)+1 do if (a mod 10)=0 then ok:=0; break; else a:=trunc(a/10);
fi; od; if ok=1 then a:=0; b:=n;
for k from 1 to ilog10(n) do c:=b mod 10; b:=trunc(b/10); a:=a+c/(b mod 10); od;
if type(a+trunc(n/10^ilog10(n))/(n mod 10), integer) then print(n); fi; fi; od; end: P(10^6);
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, Oct 21 2014
STATUS
approved