Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °
| |
|
|
You are not logged in. #26 2005-05-27 03:53:39
Re: Problem24= 3x8 School is practice for the future. Practice makes perfect. But - nobody's perfect, so why practice? #28 2005-05-27 09:29:34
Re: ProblemI've got the answer...at least I think so.... #29 2005-05-27 09:36:11
Re: ProblemIts about half past midnight, but I just thought of a genius answer (that doesn't have factorials) and I couldn't wait to share! #30 2005-05-30 15:47:07
Re: ProblemSo impressed with both solutions ... ! "The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman #33 2005-05-30 20:09:34
Re: ProblemLike, this page. School is practice for the future. Practice makes perfect. But - nobody's perfect, so why practice? #35 2005-05-30 20:30:58
Re: ProblemThat page. School is practice for the future. Practice makes perfect. But - nobody's perfect, so why practice? #36 2005-05-30 21:08:23
Re: Problem"Click and ye shall find" "The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman #37 2005-05-31 17:14:27
Re: ProblemOhh! I see. Is there are way for you to make all links colourful or underlined or something in your forum? You can never tell if it is linked or not... or is that just me? #38 2005-05-31 18:06:02
Re: ProblemOh... I wonder why not. It is underlined in Internet Explorer and Firefox on my PC. "The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman #39 2005-05-31 18:10:10
Re: ProblemOkie dokie, fixed it... I'm using firefox. #40 2005-06-02 22:12:18
Re: ProblemWell, the answer is not easy, but it exists: #43 2006-06-04 12:35:15
Re: Problem
And plus, you realise that this post is one year old? Almost exactly. #44 2006-06-04 17:27:08
Re: ProblemInteresting... Can't you make some program, which gives all possible solutions? IPBLE: Increasing Performance By Lowering Expectations. #45 2006-06-04 18:34:43
Re: ProblemMaking progress... IPBLE: Increasing Performance By Lowering Expectations. #46 2006-06-04 19:08:17
Re: ProblemMy program is ready. And guess what-there aren't another solutions except: IPBLE: Increasing Performance By Lowering Expectations. #47 2006-06-04 19:10:31
Re: ProblemThis program was personal challenge. Last edited by krassi_holmz (2006-06-04 19:17:46) IPBLE: Increasing Performance By Lowering Expectations. #48 2006-06-04 19:20:35
Re: ProblemHere's the code (Mathematica, rewritten, but really messy and hard-to-understand): Code:K[n1_, n2_] := Union[{n1 + n2, n1 - n2, n1*n2, n1/n2}];
KK[list_, num_] := Union[Flatten[Table[K[list[[i]], num], {i,
1, Length[list]}]]];
KKK[list1_,
list2_] :=
Union[Flatten[Table[KK[list1, list2[[i]]], {i, 1, Length[list2]}]]];
d[a_, b_, c_, d_, f_] := {
(*abcdfff*)
f[{a}, f[{b}, f[{c}, {d}]]],
(*abcfdff*)
f[{a}, f[f[{b}, {c}], {d}]],
(*abcffdf*)
f[f[{a}, f[{b}, {c}]], {d}],
(*abfcdff*)
f[f[{a}, {b}], f[{c}, {d}]],
(*abfcfdf*)
f[f[f[{a}, {b}], {c}], {d}]
}
d[l_, f_] := d[l[[1]], l[[2]], l[[3]], l[[4]], f];
dd[l_, f_] := dd[l[[1]], l[[2]], l[[3]], l[[4]], f];
dd[a_, b_, c_, d_, f_] :=
(
Print["abcdfff:", f[{a}, f[{b}, f[{c}, {d}]]]];
Print["abcfdff:", f[{a}, f[f[{b}, {c}], {d}]]];
Print["abcffdf:", f[f[{a}, f[{b}, {c}]], {d}]];
Print["abfcdff:", f[f[{a}, {b}], f[{c}, {d}]]];
Print["abfcfdf:", f[f[f[{a}, {b}], {c}], {d}]];
)
p = Permutations[{3, 3, 8, 8}];
res = Table[Union[Flatten[d[p[[i]], KKK]]], {i, 1, Length[p]}];
Union[Flatten[res]]Could explain and rewrite it later. IPBLE: Increasing Performance By Lowering Expectations. |