OFFSET
1,10
COMMENTS
Corresponding values of A045876(n*10^a(n))/A045876(n) are 11, 11, 11, 11, 11, 11, 11, 11, 11, 101, 303, 303, 303, 303, 303, 303, 303, 303, 303, 101, 303, 303, 303, 303, 303, 303, 303, 303, 303, 101, ...
From Charlie Neder, Jul 16 2018: (Start)
From the formula for A045876(n) we make the following modifications:
- A (the mean of the digits) becomes S/D (sum of digits / # of digits)
- N (# of arrangements of digits) becomes R*Z (# of arrangements of nonzero digits * # of ways to insert the proper number of zeros)
Appending zeros to n does not change S or R, so if (S*R*Z*I/D)(n) divides (S*R*Z*I/D)(n*10^k), then (Z*I/D)(n) divides (Z*I/D)(n*10^k). However, Z, I, and D are completely determined by the number of digits of n and the number of those digits which are zero, so a(n) = a(A136400(n)). (End)
EXAMPLE
MATHEMATICA
A045876[n_] := Total[FromDigits /@ Permutations[IntegerDigits[n]]]; a[n_] := For[k = 1, True, k++, If[Divisible[A045876[n*10^k], A045876[n]], Return[k] ] ]; Array[a, 101] (* Jean-François Alcover, Jul 26 2017 *)
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Altug Alkan, Sep 10 2016
STATUS
approved