This post has been edited 1 times, last edit by "DgT_matze4x4__" (Jul 10th 2007, 4:45pm)
. hmm gibt keine Lösung :/|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
int x;
int resultA=0,resultB=0,resultC=0;
for (int a=1;a<101;a++)
for (int b=1;b<101;b++)
for (int c=1;c<101;c++)
{
x=int(pow(float(a),17))%int(pow(float(b),13))%int(pow(float(c),11));
if (x==11)
{
resultA=a;
resultB=b;
resultB=b;
a=b=c=101; //->break für alle schleifen
}
}
|
This post has been edited 3 times, last edit by "kOa_Borgg" (Jul 10th 2007, 4:21pm)
This post has been edited 1 times, last edit by "pitt82" (Jul 10th 2007, 5:57pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import java.math.BigInteger;
public class ModBF {
public static void main(String[] args) {
BigInteger r = new BigInteger("11");
for (int a = 1; a <= 100; a++) {
BigInteger ba = new BigInteger(a + "").pow(17);
for (int b = 1; b <= 100; b++) {
BigInteger bb = new BigInteger(b + "").pow(13);
bb = ba.mod(bb);
for (int c = 1; c <= 100; c++) {
BigInteger bc = new BigInteger(c + "").pow(11);
bc = bb.mod(bc);
if (bc.compareTo(r) == 0) {
System.out.println(a + "," + b + "," + c);
return;
}
}
}
}
}
}
|
This post has been edited 4 times, last edit by "plexiq" (Jul 10th 2007, 6:34pm)
This post has been edited 1 times, last edit by "plexiq" (Jul 10th 2007, 6:59pm)

This post has been edited 1 times, last edit by "mymF.frantic" (Jul 10th 2007, 9:27pm)

This post has been edited 1 times, last edit by "[AA]Hawk" (Jul 11th 2007, 8:51pm)