### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,114)
- misc (2)
- project euler (2)
- puzzle (29)
- site news (43)
- tantalizer (29)
- teaser (3)

### Site Stats

- 166,224 hits

Programming Enigma Puzzles

20 October 2014

Posted by on **From New Scientist #1377, 29th September 1983** [link]

I was constantly being kept in at school to do extra work on decimals. So many unhappy memories are revived now that my son brings home his decimal homework: but thank goodness for calculators!

Unfortunately, the homework calls for exact answers, but my calculator displays only six digits after the decimal point. But that was no disadvantage for last night’s homework. For the teacher had listed all the integers greater than 1 whose reciprocals were recurring decimals such that the first six digits occurring after the decimal point occurred again in that order as the 7th-12th digits and the 13th-18th etc. So, for example, the first two numbers in the list were 3 and 7 because ⅓=0.3333333333333… and ⅐=0.142857142857… My son’s homework was to work out the decimals of all the reciprocals. So, for once, my limited calculator display was sufficient to check his answer.

How many numbers had the teacher listed?

**Note:** I am still waiting for a phone line to be connected at my new house, so I only have sporadic access to the internet at the moment. The latest estimate is that I’ll have a connection by the end of October 2014.

[enigma231]

Advertisements

%d bloggers like this:

This Python program runs in 32ms.

Solution:The teacher had listed 63 numbers.