login
A090976
a(n) = 100 reduced mod n.
2
0, 0, 1, 0, 0, 4, 2, 4, 1, 0, 1, 4, 9, 2, 10, 4, 15, 10, 5, 0, 16, 12, 8, 4, 0, 22, 19, 16, 13, 10, 7, 4, 1, 32, 30, 28, 26, 24, 22, 20, 18, 16, 14, 12, 10, 8, 6, 4, 2, 0, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21
OFFSET
1,6
FORMULA
a(n) = 100 - n*[100/n] where [x] = floor.
a(n) = 100 for n > 100.
EXAMPLE
a(17)= 15 because [100/17] = 5, remainder is 15 (17*5 = 85, 100-85 = 15).
MATHEMATICA
Mod[100, Range[80]] (* Harvey P. Dale, Jun 01 2020 *)
PROG
(PARI) a(n) = 100 % n \\ Michel Marcus, Jun 29 2013
CROSSREFS
Sequence in context: A112983 A332330 A068454 * A156199 A135513 A176895
KEYWORD
easy,nonn
AUTHOR
Andy Edwards (AndynGen(AT)aol.com), Feb 28 2004
EXTENSIONS
More terms from David Wasserman, Feb 23 2006
STATUS
approved