OFFSET
2,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 2..1000
Milan Janjic, Enumerative Formulas for Some Functions on Finite Sets
FORMULA
a(n) = 10^n - floor(10^n/7) - floor(10^n/30) + floor(10^n/210).
EXAMPLE
a(6) = 10^6 - floor(10^6/7) - floor(10^6/30) + floor(10^6/210) = 1000000 - floor(142857.142...) - floor(33333.333...) + floor(4761.904...) = 1000000 - 142857 - 33333 + 4761 = 828571.
MAPLE
f := n->10^n-floor(10^n/7)-floor(10^n/30)+floor(10^n/210);
PROG
(Magma) [10^n-Floor(10^n/7)-Floor(10^n/30)+Floor(10^n/210): n in [2..20]]; // Vincenzo Librandi, Oct 02 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Milan Janjic, Apr 28 2007
EXTENSIONS
Example edited by Jon E. Schoenfield, Nov 17 2018
STATUS
approved