OFFSET
1,2
COMMENTS
The primitive values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 111, 124, 1111, 1124, ...
248 is not a primitive value because each digit equals two times each digit of 124.
241 is not a primitive value because 241 is a cyclic permutation of 124.
LINKS
Michel Lagneau, Table of n, a(n) for n = 1..10000
EXAMPLE
3164 is in the sequence because 3/1 + 1/6 + 6/4 + 4/3 = 6 is integer.
MAPLE
for n from 1 to 4000 do: x:=convert(n, base, 10):n1:=nops(x): p:= product('x[i]', 'i'=1..n1):if p<>0 then: s:=sum('x[n1-i+1]/x[n1-i]', 'i'=1..n1-1):s:=s+x[1]/x[n1]: if s=floor(s) then printf(`%d, `, n):else fi:fi:od:
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Jun 26 2013
STATUS
approved