UPC Code

This is an example of checking whether Universal Product Codes (UPC) or International Standard Book Number (ISBN) codes are legitimate. Is the shown code valid? and how do you prove it?

No, it is a fake code Yes, it is a valid code

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Hana Wehbi
Aug 6, 2019

In order for the 12 digit UPC code above to be legitimate, we order the digits x 1 , x 2 , x 3 , , x 12 x_1,x_2,x_3,··· ,x_{12} .

The expression 3 x 1 + x 2 + 3 x 3 + x 4 + 3 x 5 + x 6 + 3 x 7 + x 8 + 3 x 9 + x 10 + 3 x 11 + x 12 3x_1 + x_2 + 3x_3 + x_4 + 3x_5 + x_6 + 3x_7 + x_8 + 3x_9 + x_{10 }+ 3x_{11} + x_{12} must be divisible by 10.

We indeed verify that the above code gives:

0 × 3 + 3 × 1 + 6 × 3 + 0 × 1 + 0 × 3 + 0 × 1 + 2 × 3 + 9 × 1 + 1 × 3 + 4 × 1 + 5 × 3 + 2 × 1 = 60 0\times3+3\times1+6\times3+0\times1+0\times3+0\times1+2\times3+9\times1+1\times3+4\times1+5\times3+2\times1 = 60 , which is divisible by 10.

Therefore the above UPC code is valid.

Was it from your Kleenex box? https://www.upcdatabase.com/item/0036000291452 :-)

David Vreken - 1 year, 10 months ago

Interesting, l saw this problem in a Number Theory book and felt like sharing it. The code you have has double zeros at the beginning, slightly different. Also, it says Figure 1.1

Hana Wehbi - 1 year, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...