ROSECODE 253
Complex Base 2
The definitions are the same as in problem 252
Consider the following pseudo-random generator:
You are given the following values:
Find the sum of R(n) for all n in V
[My timing : 12 sec]
Consider the following pseudo-random generator:
static long seed = 641;
static long FastRandom()
{
seed = (214013 * seed + 2531011) % 43097251273073;
return seed;
}
Let V the sequence of the first 100,000 values of FastRandomYou are given the following values:
| 1 | 139713344 |
| 10 | 34286987424384 |
| 100 | 2133420965406 |
| 1000 | 31159015095342 |
| 10000 | 29256942849607 |
| 100000 | 42800860506246 |
Find the sum of R(n) for all n in V
[My timing : 12 sec]