OFFSET
0,13
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
FORMULA
a(3*k+1) = a(3*k+2) = 0, a(3*k) = multinomial(m; c(0),...,c(9)) where c(i) is the number of occurrences of digit i in 3*k and m = c(0)+c(1)+...+c(9). - Sean A. Irvine, Aug 27 2025
EXAMPLE
a(12) = 2: (12,21)
MATHEMATICA
Table[Count[FromDigits/@Permutations[IntegerDigits[n]], _?(Divisible[ #, 3]&)], {n, 0, 110}] (* Harvey P. Dale, Apr 22 2019 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Feb 06 2003
EXTENSIONS
More terms from Sam Alexander, Feb 26 2005
STATUS
approved
