[Archive!] Pure mathematics, physics, chemistry, etc.: brain-training problems not related to trade in any way - page 444

 
Mathemat:

87 = 11+76. П=836 (=2*2*11*19) = 2*418 = 4*209 = 11*76 = 19*44 = 22*38. The probable sums are 87, 63, 60. The solution is unique and is not disproved by the first retort A! The numbers are 11 and 76.

I think we're screwed after all. Check the green pair.

Checked it out. Real bummer. Looked at my notes - I'm ashamed to say, I've misdivided the 76 into multipliers... Yeah. :(

All right. At least we got a clearer idea. We're gonna crack her tomorrow.

We're done for the day.

Good night everyone.

 

Guys, please help me, there is a formula in here but I can't figure out what it is.

int init()
{
return(0);
}

int deinit()
{
double AngleIndex=0;
string AngleName=";


for(AngleIndex=0;AngleIndex<=720;AngleIndex=AngleIndex+22.5)
{
AngleName = "Angle_" + AngleIndex;
ObjectDelete(AngleName + "Label");
ObjectDelete(AngleName + " Line");
}


return(0);
}

int start()
{
double AngleIndex=0;
string AngleName=";
double FactorIndex=0;
double AnglePriceLevel=0;
int Index=0;
string strLabel=";

for(AngleIndex=0;AngleIndex<=720;AngleIndex=AngleIndex+22.5)
{
AnglePriceLevel = CalculateSquare(FactorIndex,StartPrice);

//Trim Zero's
if(Index==1)
{
strLabel = DoubleToStr(AngleIndex,1);
}
else
{
strLabel = DoubleToStr(AngleIndex,0);
}

AngleName = "Angle_" + AngleIndex;



if(ObjectFind(AngleName + "Line") != 0)
{
ObjectCreate(AngleName + " Line", OBJ_HLINE, 0, Time[40], AnglePriceLevel);
//ObjectSet(AngleName + " Line", OBJPROP_STYLE, STYLE_DASHDOTDOT);
ObjectSet(AngleName + " Line", OBJPROP_BACK, true);

if(MathMod(Index,2) == 0)
{
ObjectSet(AngleName + " Line", OBJPROP_COLOR, _45Degree_Color);
ObjectSet(AngleName + " Line", OBJPROP_STYLE, STYLE_DASH);
}
else
{
ObjectSet(AngleName + " Line", OBJPROP_COLOR, _22.5Degree_Color); //25.5
ObjectSet(AngleName + " Line", OBJPROP_STYLE, STYLE_DASHDOTDOT);
}
}
else
{
ObjectMove(AngleName + " Line", 0, Time[40], AnglePriceLevel);
}

if(ObjectFind(AngleName + " Label") != 0)
{
ObjectCreate(AngleName + " Label", OBJ_TEXT, 0, Time[20], AnglePriceLevel);

if(MathMod(Index,2) == 0)
{
ObjectSetText(AngleName + " Label", strLabel + "°", 12, "Verdana", _45Degree_Color);

}
else
{
ObjectSetText(AngleName + " Label", strLabel + "°", 12, "Verdana", EMPTY);
}

}
else
{
ObjectMove(AngleName + " Label", 0, Time[20], AnglePriceLevel);
}

FactorIndex = FactorIndex + 0.56;// 0.125 <<<<<<<<<<< Renier gebruik 0.14
Index = Index + 1;
}

return(0);
}






double CalculateSquare(double Factor, double Price)
{
double AnglePrice=0;

if(Price > 0)
{

if(StringFind(Symbol(), "JPY",0) == -1)
{
Price = Price * 100000;
}
else
{
Price = Price * 1000;
}

if(Direction_Up==true)
{
AnglePrice = MathPow(MathSqrt(Price) + Factor,2);
}
else
{
AnglePrice = MathPow(MathSqrt(Price) - Factor,2);
}

if(StringFind(Symbol(), "JPY",0) == -1)
{
AnglePrice = AnglePrice / 100000;
}
else
{
AnglePrice = AnglePrice / 1000;
}

}

return(AnglePrice);

}
 

While smoking, I found one solution after all. (probably not the only one). The logic of finding it was quite simple.

// Why didn't I think of it at once? ;)

Sum = 67

Product=192

Numbers: 64 и 3

--

// Beautiful solution and the speed of the sage dialogue is explained. Overkill is almost unnecessary.

 

just want to put it in Excel for easy use for Futures and Indices

 
kaln82:

Guys, please help, there is a formula in here but I can't figure out what it is.

int init()

{.............................

Screw it. You've got the wrong notes. It's this way: https://www.mql5.com/ru/forum/111497/.

// We are there too. We are everywhere...

 
kaln82:

just want to write it in Excel, for easy use for Futures and Indices

How much? How much?
 
MetaDriver:

Sum = 67

product=192

Numbers: 64 и 3

3 (A): 192 (= 2*2*2*2*2*2*3) = 2*96 = 3*64 = 4*48 = 6*32 = 8*24 = 12*16. The sums are all even, except for 67. I know a pair!

4 (Б):

Memento 11,17,23,27,29,35,37,41,47,51,53,57,59,65,67,71,77,79,83,87,89,93,95,97.

67=2+65. Proc = 130 (=2*5*13) = 2*65 = 5*26 = 10*13. Probable sums: 67, 31, 23. Fails.

67=3+64. П = 192 ... repeat 3 (A), goes only C=67, the only one here and not contradicting the 1st replica of A. A possible pairing is 3,64.

67=4+63. П = 252 (=2*2*3*3*7) = 3*84 = 4*63 = 6*42 = 7*36 = 9*28 = 12*21 = 14*18. The sums are 87, 67... is enough. Doesn't work.

67=5+62. П = 310 (=2*5*31) = 5*62 = 10*31. The sums are 67, 41. Does not pass.

67=6+61. П = 366 (=2*3*61). Guesses in the first line of A.

67=7+60. П = 420 (=2*2*3*5*7) = 5*84 = 6*70 = 7*60... is sufficient, since the sums of 89 and 67 are acceptable. It does not pass.

67=8+59. The pair is guessed at once.

67=9+58. П (=2*3*3*29) = 6*87 = 9*58 = 18*29. The sums are 93, 67 etc. Doesn't pass.

67=10+57. П (=2*3*5*19) = 10*57 = 15*38 = 19*30. The sums are 67,53,49. Doesn't pass.

67=11+56. П (=2*2*2*7*11) = 7*88 = 8*77 = 11*56 = 14*44 = 22*28. The sums are 95,85,67 etc. Does not pass.

67=12+55. П (=2*2*3*5*11) = 10*66 = 12*55 = 15*44 = 20*33 = 22*30. The sums are 67, 59 etc. Doesn't work.

67=13+54. П (=2*3*3*3*13) = 9*78 = 13*54. The sums are 87,67. No.

67=14+53. П (=2*7*53) = 14*53. Guesses from the first line. No.

67=15+52. П (=2*2*3*5*13) = 10*78 = 12*65 = ... The sums are 77 and , of course, 67. No.

67=16+51. П (=2*2*2*2*3*17) = 12*68 = 16*51 = 17*48 = ... The sums are 65 and ours is 67. No.

67=17+50. П (=2*5*5*17) = 10*85 = 17*50 = 25*34. The surplus sum is 95. No.

67=18+49. П (=2*3*3*7*7) = 14*63 = .... There is a surplus sum of 77. No.

67=19+48. П (=2*2*2*2*3*19) = 12*76 = 16*57 = 19*48 = 24*38. There are no extra ones. Bummer. The numbers are 19 and 48.

__________________

Gone to bed, it is late :)

 
Mathemat:


I didn't mean to suggest a solution. I'm talking about you programmers sitting around and manually going through the options... What for?
 
ValS:
I didn't mean to suggest a solution. I'm talking about you programmers sitting around and manually going through the options... Why?
so you can take a break from the computer.)
 
Techno 12.01.2011 04:32
ValS:
I wouldn't dream of telling you the solution. I'm talking about the fact that you programmers sit around and manually go through the options... What for?
To take a little break from the computer )

I have a different motive - to learn how to think analytically and mathematically. And to get different pleasures along the way. And I'll write the script later . It's an easier task for me.

By the way, thanks for the problem, Valery. Simply wonderful!

Reason: