Math Is Fun Forum

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

You are not logged in.

#26 2013-05-12 12:45:53

mathaholic
Member
From: Earth
Registered: 2012-11-29
Posts: 3,251

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

up


Mathaholic | 10th most active poster | Maker of the 350,000th post | Person | rrr's classmate
smile

Offline

#27 2013-05-12 19:34:22

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,879

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Last edited by phrontister (2013-05-13 05:36:05)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#28 2013-05-12 21:08:50

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#29 2013-05-13 05:33:09

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,879

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

StringCases[ToString[N[ChampernowneNumber[], 1234]], "1234"] =1234

Last edited by phrontister (2013-05-14 02:29:47)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#30 2013-05-13 17:59:48

mathaholic
Member
From: Earth
Registered: 2012-11-29
Posts: 3,251

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

upup


Mathaholic | 10th most active poster | Maker of the 350,000th post | Person | rrr's classmate
smile

Offline

#31 2013-05-14 01:42:21

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,879

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

First[Flatten[StringPosition[ToString[N[Pi, 13!!]], "1234"]]]
StringTake[ToString[N[Pi, % + 2]], -4] =1234

StringTake[ToString[N[Pi, FromDigits[{1, 3, 4!!, 1, 3 - 2}]]], -4] =1234

If[StringMatchQ[ToString[N[Pi, 12!!]], "*1234*"], FromDigits[Table[i, {i, 4}]]] =1234

Last edited by phrontister (2013-05-14 17:11:01)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#32 2013-05-14 11:51:45

mathaholic
Member
From: Earth
Registered: 2012-11-29
Posts: 3,251

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

upupup


Mathaholic | 10th most active poster | Maker of the 350,000th post | Person | rrr's classmate
smile

Offline

#33 2013-05-14 20:45:14

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,879

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Find the four 3-digit numbers and the products as indicated in this arithmetic sum, where
- each letter stands for a single digit,
- the same letter stands for the same digit, and
- no values are shared with other letters.

     4 x abc  =
+   3 x cba  =
-    2 x cab  =
+   1 x dba  =
                       -----
                       1234
                       ===

Clue: Letter values are from the digits 1, 2, 3 and 4.

Last edited by phrontister (2013-05-14 21:20:02)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#34 2013-05-14 21:37:28

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Hi;



In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#35 2013-05-14 22:17:20

ElainaVW
Member
Registered: 2013-04-29
Posts: 580

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

I solved it!

Last edited by ElainaVW (2013-05-14 22:52:49)

Offline

#36 2013-05-15 04:56:07

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,879

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Hi Elaina & Bobby,

Correct! smile

Not quite the full answer to my two questions, but I know what you mean. I don't know how Teacher Bob would have marked your answers, but I give you a good pass. up

And yes, the puzzle has a unique solution.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#37 2013-05-15 05:01:38

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

You wanted her solution, did you not?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#38 2013-05-15 05:20:41

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,879

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

True, but also the four 3-digit numbers. No problem, though...just messing around.

Those 3-digit numbers contain just the digits as per the thread, so I'd been hoping that their solutions would have shown up in the answers too. Maybe I could have worded my puzzle better.

Did you have a look at my M codes in post #31? I had some fun getting those to work, and needed help from the Help files.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#39 2013-05-15 05:25:56

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Hi phrontister;

No I didn't, I forgot all about that game. I will look at them a little later because I have to get offline now. See you then.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#40 2013-05-15 05:28:19

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,879

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Ok...ciao for niao. Bed for me, anyway; so good night, and see you later.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#41 2013-05-15 08:13:53

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Hi phro


“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

#42 2013-05-15 09:58:15

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Hi;

That code is working!

This is a violation of the rules but there is a 1234 located at position

of the constant e. I smell a new Dan Brown book!


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#43 2013-05-15 11:26:05

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,879

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Hi stefy,

Correctamundo! up


Hi Bobby,

How do I test that? Also, I've never used e, and I don't know what it does or what it's for.

Last edited by phrontister (2013-05-15 11:26:21)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#44 2013-05-15 11:30:13

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Hi phrontister;

In M talk e is Exp[1]. It is the most important constant in mathematics and more common then pi.

Test that power tower? Not likely!


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#45 2013-05-15 11:31:28

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,879

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Hi Elaine, Bobby and stefy,

How did you solve my alphametic? Pencil + paper + logic, maybe? (I didn't...I used Excel)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#46 2013-05-15 11:38:26

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Takes a little time with pencil and paper. There are only 24 possibilities to consider.

There is a M command that does this easily.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#47 2013-05-15 11:42:42

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,879

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Oo...hint?

Czeched out 'e' on Wikipedia and it's all double Dutch to me. Might as well have been written in Greek! (which it probably has, in a Greek W version...I keep forgetting that English isn't the only language on the globe).


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#48 2013-05-15 11:48:17

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Hi;

I hate to give this up! No one seems to know about the mightiest command in M.

[removed by admin, breach of national security.]


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#49 2013-05-15 11:54:51

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,879

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

Copied and tested. Thanks...I'd better look at it next. smile

I think I know what you mean with 'e'...and the same would apply to any position >4, then.

I originally only thought of the decimal approximation, not the infinite series.

Last edited by phrontister (2013-05-15 11:57:20)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#50 2013-05-15 11:58:43

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Make 1,234 using the numbers 1, 2, 3, and 4 only

That was a joke. I have no idea what is at position

Do some reading on that command, it is well worth it.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

Board footer

Powered by FluxBB