Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ π -¹ ² ³ °

You are not logged in.

- Topics: Active | Unanswered

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 100,403

Hi;

This one was posed in another thread and solved there by anonimnystefy.

Find the smallest natural number for which, if you move its last digit to the beginning, you get a number that is 6 times the original. Or prove that no such number can exist.

We will follow his fine idea and see how we can utilize a CAS to help.

Suppose there were a 3 digit number that was the answer then:

or

No insight yet on the problem so we try a 4 digit number.

One more a 5 digit number:

We see a pattern developing and this is an important part of experimental mathematics.

The pattern is there is always a multiple of 59 on the left and a predictable form of 10^k - 6 on the right.

We know that

We also know that a0 which is the front digit of the new number must be one of these {1,2,3,4,5,6,7,8,9}.

The whole thing now presents itself as an algorithm that leads to this pseudocode:

1) Begin k loop

2) h = 10^k - 6 / 59

3) Times h by 1,2,3,4,5,6,7,8,9 and see if the products are integers.

4) Yes they are, print k and stop

5) They are not go back to 1.

*Last edited by bobbym (2013-03-02 17:32:08)*

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

Is k the number of digits?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 100,403

Hi;

The answers are 58 digits long, but k+1 is the number of digits.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

Is k coming as 16?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 100,403

Hi;

You probably got that answer because of precision problems.

Your programming language is just not carrying enough digits. You need to have a language that has higher precision than 17 significant digits.

When I invented this problem I had no idea that such an answer would be necessary.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

I never knew python is that bad

I will import decimal module and do again

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 100,403

Does python support big integer arithmetic?

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

Ya good, Thank You I am getting 57

P.S: Defining numbers in Python isn't a problem at all. How big do you want your integer to be?

*Last edited by Agnishom (2013-03-02 20:54:36)*

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 100,403

That is correct, for the first part!

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

Hmm... Let me see if I can find the number

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 100,403

There is a little trick, you will have to refer to the math in post #1.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

`1694915254237288135593220338983050847457627118644067796610169491525423728813559322033898305084745762711864406779661`

`169491525423728813559322033898305084745762711864406779661`

Is that it?

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

I am close but something is wrong

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 100,403

Hi;

The great part of doing this type of work is that you never need to ask that question. You always have an

infallible way to know. Did you check that number?

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

Answer:

A. 1694915254237288135593220338983050847457627118644067796601

B. Something is still wrong

But B is 116 digits long

*Last edited by Agnishom (2013-03-02 21:28:05)*

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 100,403

Hi;

Do not worry, we will sort it all out.

You remember from the math:

The a0 can take any value from 1 - 9. You only picked 1. The left has every digit except for a0. When you choose

a digit for a0 it goes on the back of the number.

*Last edited by bobbym (2013-03-02 21:30:57)*

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

you wrote:

3) Times h by 1,2,3,4,5,6,7,8,9 and see if the products are integers.

Isn't this number of times the value of a_0?

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 100,403

Hi;

It is a0!

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

(10^57 - 6)*1 / 59 is an Integer.

So why won't 1 serve as a0?

*Last edited by Agnishom (2013-03-02 22:37:14)*

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

I'm not crazy, my mother had me tested.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 100,403

It sure could but that does not mean it solves the problem. As a matter of fact that are 4 solutions in this area.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

**anonimnystefy****Real Member**- From: Harlan's World
- Registered: 2011-05-23
- Posts: 15,955

My solution was with a0=6 and a0=9.

Here lies the reader who will never open this book. He is forever dead.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

The knowledge of some things as a function of age is a delta function.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 100,403

There are 2 more solutions.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

**anonimnystefy****Real Member**- From: Harlan's World
- Registered: 2011-05-23
- Posts: 15,955

I figured that out. And I think that I will be able to find them as soon as I look at my notebook.

Here lies the reader who will never open this book. He is forever dead.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

The knowledge of some things as a function of age is a delta function.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 100,403

Once Agnishom figures it out then I can post another one.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

**anonimnystefy****Real Member**- From: Harlan's World
- Registered: 2011-05-23
- Posts: 15,955

I have a feeling it will be monstrous.

Here lies the reader who will never open this book. He is forever dead.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

The knowledge of some things as a function of age is a delta function.

Offline