A091802 10^n - (largest n-digit multiple of the n-th prime).
2, 1, 5, 4, 10, 1, 5, 17, 20, 6, 19, 1, 16, 36, 40, 46, 8, 41, 6, 48, 63, 67, 63, 78, 71, 100, 37, 12, 30, 31, 66, 12, 10, 79, 83, 20, 146, 145, 158, 132, 8, 36, 86, 46, 109, 89, 111, 210, 177, 12, 186, 44, 58, 211, 192, 33, 183, 187, 154, 165, 176, 235, 269, 289, 168, 38
Offset: 1
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
ndmd[n_]:=Module[{x=Prime[n]},10^n-x Floor[(10^n-1)/x]]; Array[ndmd,70] (* Harvey P. Dale, Jan 05 2012 *)
Extensions
More terms from Ray Chandler, Feb 22 2004