Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A137385
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A137385 Number of errors that occur when choosing n as modulo in French INSEE code (0<n<100). +0
1
8190, 7600, 2184, 6810, 7246, 2024, 994, 5956, 182, 7128, 336, 1806, 448, 920, 1932, 5068, 375, 168, 330, 6578, 196, 312, 274, 1579, 6250, 414, 0, 821, 200, 1908, 244, 4246, 84, 342, 878, 154, 112, 301, 140, 5844, 134, 182, 122, 276, 168, 255, 111, 1347, 125, 6248, 92, 363, 104, 0, 294, 715, 85, 183, 75, 1758, 92, 223, 0, 3492, 392, 78, 70, 300, 64, 864, 110, 140, 63, 108, 1673, 262, 28, 130, 65, 5054, 0, 120, 63, 160, 323, 111, 51, 238, 57, 168, 28, 225, 77, 102, 286, 1132, 74, 120, 0 (list; graph; listen)
OFFSET

1,1

COMMENT

The most frequent errors are:

- permutation between 2 ranks

- error in one rank

LINKS

Author?, Les-mathematiques.net

EXAMPLE

Actual n is 97. It generates 74 errors.

Best choices could be 27, 54, 63, 81 or 99 instead of 97.

PROGRAM

(Python program. Replace leading dots by spaces)

for cle in range(1, 100):

... n=0

... for r1 in range(1, 14):

....... for r2 in range(r1, 14):

............ur1=cle-(10**(13-r1))%cle

............ur2=cle-(10**(13-r2))%cle

............for c1 in range(10):

............... for c2 in range(10):

................... if c1==c2:

........................dif=1

................... else:

........................dif=(c1*ur1-c2*ur2)%cle

................... if dif==0:

........................n=n+1

... print cle, ':', n

CROSSREFS

Adjacent sequences: A137382 A137383 A137384 this_sequence A137386 A137387 A137388

Sequence in context: A096329 A126823 A014885 this_sequence A108093 A051334 A145592

KEYWORD

fini,full,nonn

AUTHOR

Sebastien Dumortier (sdumortier(AT)ac-limoges.fr), Apr 26 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified January 7 17:35 EST 2009. Contains 152824 sequences.


AT&T Labs Research