Problem 820: Non-unique expansions of decimal fraction

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.

This forum is NOT meant to discuss solution methods for a problem.

In particular don't post any code fragments or results.

Don't start begging others to give partial answers to problems

Don't ask for hints how to solve a problem

Don't start a new topic for a problem if there already exists one


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
Post Reply
pri_gua

Problem 820: Non-unique expansions of decimal fraction

Post by pri_gua »

In the examples given for this problem it clearly states that d7(5) = 0.
Given: 1/5 = 0.2000... = 0.1999... Can this be explicitly mentioned in the problem statement that while decimal expansions are not unique, we prefer the decimal expansions that repeat 0 over the decimal expansions that repeat 9.
Last edited by pri_gua on Tue Dec 20, 2022 1:10 pm, edited 1 time in total.
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 820: Non-unique expansions of decimal fraction

Post by hk »

1/5=0.20000000...=0.19999999...
The possible ambiguity is resolved by the given example.
Image
War ruins the life and health of untold numbers of innocent children.
Post Reply