OFFSET
1,2
COMMENTS
A number n with k digits and digit sum s occurs in the sequence if and only if (10^k-1)*s = 9*k*n. - Hagen von Eitzen, Jun 17 2009
Many terms (perhaps all) are related to decimal expansions of fractions with a power of 3 in the denominator (see Munafo webpage). - Robert Munafo, Jun 18 2009
Replacing "all possible permutations" in the definition with "all cyclic permutations" produces the same sequence. Even more generally, the symmetric group can be replaced by any finite group operating transitively on the n places. - Hagen von Eitzen, Jun 22 2009
LINKS
H. v. Eitzen, Table of n, a(n) for n=1..1002
Robert Munafo, Equal to Average of Permutations of its Digits [From Robert Munafo, Jun 18 2009]
EXAMPLE
a(22) = 370 is a member because 073+037+307+370+703+730 = 2220, average = 2220/6 = 370
MAPLE
Lton := proc(L) add( op(i, L)*10^(i-1), i=1..nops(L)) ; end: isA160818 := proc(n) local dgs, av ; dgs := combinat[permute]( convert(n, base, 10) ); av := add( Lton(p), p=dgs)/nops(dgs) ; RETURN(av=n) ; end: for n from 1 to 40000 do if isA160818(n) then printf("%d, ", n) ; fi; od: # R. J. Mathar, May 29 2009
PROG
(C) See Robert Munafo link
(PARI) for(k=1, 20, rep=(10^k-1)/9; for(s=1, 9*k, if((rep*s)%k==0 && A007953(n=rep*s/k)==s, print1(n, ", ")))) \\ Hagen von Eitzen, Jun 22 2009
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Claudio Meller, May 27 2009
EXTENSIONS
15 more terms from R. J. Mathar, May 29 2009
More terms from Robert Munafo, Jun 18 2009
STATUS
approved