Talk:Verhoeff algorithm
Appearance
Is this algorithm correct?
According to [1], 3170092 is also a valid number.
Using the algorithm here, that becomes:
i | ni | p(i,ni) | previous c | new c = d(c,p(i,ni)) |
---|---|---|---|---|
0 | 2 | 2 | 0 | 2 |
1 | 9 | 4 | 2 | 1 |
2 | 0 | 5 | 1 | 6 |
3 | 0 | 8 | 6 | 3 |
4 | 7 | 8 | 3 | 6 |
5 | 1 | 2 | 6 | 9 |
6 | 3 | 3 | 9 | 6 |
Which one is incorrect? The wikiarticle? The other article? The fact that 3170092 is a valid number? Or have I made a mistake?