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

You are not logged in.

## #1 2013-03-03 16:02:23

bobbym

Online

### A number problem.

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-03 16:32:08)

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #2 2013-03-03 18:44:59

Agnishom
Real Member

Offline

### Re: A number problem.

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'
'The whole person changes, why can't a habit?' -Alokananda

## #3 2013-03-03 18:49:01

bobbym

Online

### Re: A number problem.

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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #4 2013-03-03 19:37:51

Agnishom
Real Member

Offline

### Re: A number problem.

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'
'The whole person changes, why can't a habit?' -Alokananda

## #5 2013-03-03 19:42:11

bobbym

Online

### Re: A number problem.

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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #6 2013-03-03 19:47:57

Agnishom
Real Member

Offline

### Re: A number problem.

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'
'The whole person changes, why can't a habit?' -Alokananda

## #7 2013-03-03 19:48:56

bobbym

Online

### Re: A number problem.

Does python support big integer arithmetic?

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #8 2013-03-03 19:52:38

Agnishom
Real Member

Offline

### Re: A number problem.

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-03 19:54:36)

'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'
'The whole person changes, why can't a habit?' -Alokananda

## #9 2013-03-03 19:53:36

bobbym

Online

### Re: A number problem.

That is correct, for the first part!

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #10 2013-03-03 19:55:29

Agnishom
Real Member

Offline

### Re: A number problem.

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

'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'
'The whole person changes, why can't a habit?' -Alokananda

## #11 2013-03-03 19:56:22

bobbym

Online

### Re: A number problem.

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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #12 2013-03-03 20:05:32

Agnishom
Real Member

Offline

### Re: A number problem.

#### Code:

`1694915254237288135593220338983050847457627118644067796610169491525423728813559322033898305084745762711864406779661`

#### Code:

`169491525423728813559322033898305084745762711864406779661`

Is that it?

'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'
'The whole person changes, why can't a habit?' -Alokananda

## #13 2013-03-03 20:08:13

Agnishom
Real Member

Offline

### Re: A number problem.

I am close but something is wrong

'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'
'The whole person changes, why can't a habit?' -Alokananda

## #14 2013-03-03 20:09:55

bobbym

Online

### Re: A number problem.

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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #15 2013-03-03 20:23:38

Agnishom
Real Member

Offline

### Re: A number problem.

A. 1694915254237288135593220338983050847457627118644067796601

B. Something is still wrong

But B is 116 digits long

Last edited by Agnishom (2013-03-03 20:28:05)

'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'
'The whole person changes, why can't a habit?' -Alokananda

## #16 2013-03-03 20:30:26

bobbym

Online

### Re: A number problem.

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-03 20:30:57)

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #17 2013-03-03 20:36:02

Agnishom
Real Member

Offline

### Re: A number problem.

#### 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?

'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'
'The whole person changes, why can't a habit?' -Alokananda

## #18 2013-03-03 20:37:22

bobbym

Online

### Re: A number problem.

Hi;

It is a0!

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #19 2013-03-03 21:34:44

Agnishom
Real Member

Offline

### Re: A number problem.

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

So why won't 1 serve as a0?

Last edited by Agnishom (2013-03-03 21:37:14)

'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'
'The whole person changes, why can't a habit?' -Alokananda

## #20 2013-03-03 21:40:13

bobbym

Online

### Re: A number problem.

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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #21 2013-03-03 21:43:54

anonimnystefy
Real Member

Offline

### Re: A number problem.

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

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #22 2013-03-03 21:44:21

bobbym

Online

### Re: A number problem.

There are 2 more solutions.

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #23 2013-03-03 22:06:22

anonimnystefy
Real Member

Offline

### Re: A number problem.

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

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #24 2013-03-03 22:14:13

bobbym

Online

### Re: A number problem.

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

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #25 2013-03-03 22:26:23

anonimnystefy
Real Member

Offline

### Re: A number problem.

I have a feeling it will be monstrous.

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment