[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A282134
First differences of A045876.
1
1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 22, 11, 11, 11, 11, 11, 11, 11, -88, 11, -11, 33, 11, 11, 11, 11, 11, 11, -88, 11, 11, -22, 44, 11, 11, 11, 11, 11, -88, 11, 11, 11, -33, 55, 11, 11, 11, 11, -88, 11, 11, 11, 11, -44, 66, 11, 11, 11, -88, 11, 11, 11, 11, 11, -55, 77, 11, 11, -88, 11, 11, 11, 11, 11, 11, -66, 88, 11, -88, 11
OFFSET
1,9
COMMENTS
See also scatterplot of this sequence.
FORMULA
a(n) = A045876(n+1) - A045876(n).
EXAMPLE
a(11) = 22 because A045876(12) - A045876(11) = (12 + 21) - 11 = 22.
MATHEMATICA
Differences@ Table[Total[FromDigits /@ Permutations@ IntegerDigits@ n], {n, 81}] (* Michael De Vlieger, Feb 07 2017, after T. D. Noe at A045876 *)
PROG
(PARI) A045876(n) = {my(d=digits(n), q=1, v, t=1); v = vecsort(d); for(i=1, #v-1, if(v[i]==v[i+1], t++, q*=binomial(i, t); t=1)); q*binomial(#v, t)*(10^#d-1)*vecsum(d)/9/#d}
a(n) = A045876(n+1) - A045876(n);
CROSSREFS
Cf. A045876.
Sequence in context: A290465 A256303 A156438 * A293938 A254042 A368014
KEYWORD
base,easy,sign
AUTHOR
Altug Alkan, Feb 06 2017
STATUS
approved