OFFSET
1,1
COMMENTS
Complement of A275945.
Permutations with a first digit of 0 are included in the average (i.e. 0010 is taken to be 10, 01 is taken to be 1, etc.).
From Robert Israel, Sep 01 2016: (Start)
In particular, contains no k-digit numbers if k is in A014950. (End)
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
12 is a term because (12+21) = 33 is not divisible by 2.
1000 is a term because (1+10+100+1000) = 1111 is not divisible by 4.
123 is not a term because (123+132+213+231+312+321) is divisible by 6.
1001 is a term because (11+101+110+1001+1010+1100) is not divisible by 6.
MAPLE
f:= proc(n) local L, d, s;
L:= convert(n, base, 10);
d:= nops(L);
s:= convert(L, `+`);
evalb(s*(10^d-1)/9 mod d = 0)
end proc:
remove(f, [$1..10000]); # Robert Israel, Sep 01 2016
MATHEMATICA
Select[Range[2^10], ! IntegerQ@ Mean@ Map[FromDigits, Permutations@ #] &@ IntegerDigits@ # &] (* Michael De Vlieger, Aug 29 2016 *)
PROG
CROSSREFS
KEYWORD
easy,base,nonn
AUTHOR
Altug Alkan, Aug 29 2016
STATUS
approved