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”).

A114433
Last digit (the checksum) of 10-digit ISBN numbers, 10 is represented as "X".
0
9, 7, 5, 3, 1, 10, 8, 6, 4, 8, 6, 4, 2, 0, 9, 7, 5, 3, 1, 5, 3, 1, 10, 8, 6, 4, 2, 0, 9, 2, 0, 9, 7, 5, 3, 1, 10, 8, 6, 10, 8, 6, 4, 2, 0, 9, 7, 5, 3, 7, 5, 3, 1, 10, 8, 6, 4, 2, 0, 4, 2, 0, 9, 7, 5, 3, 1, 10, 8, 1, 10, 8, 6, 4, 2, 0, 9, 7, 5, 9, 7, 5, 3, 1, 10, 8, 6, 4, 2, 6, 4, 2, 0, 9, 7, 5, 3, 1, 10
OFFSET
1,1
FORMULA
The first nine digits of ten-digit ISBN numbers are assigned according to the language, publisher and book. The final digit is a checksum: 1 x the first digit, 2 x the second digit, ... 9 x the ninth digit, reduced modulo 11 and 10 is printed as "X".
PROG
(Python)
def a(n): return sum((i+1)*int(s) for i, s in enumerate(str(n).zfill(9)))%11
print([a(n) for n in range(1, 100)]) # Michael S. Branicky, Sep 07 2021
CROSSREFS
Sequence in context: A237841 A109846 A096230 * A222129 A188141 A244667
KEYWORD
easy,nonn,base
AUTHOR
Jud McCranie, Feb 13 2006
STATUS
approved