← RoseCode

ROSECODE 253

Complex Base 2

Philippe_57721 · Programming ·

The definitions are the same as in problem 252

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 FastRandom
You are given the following values:
1139713344
1034286987424384
1002133420965406
100031159015095342
1000029256942849607
10000042800860506246

Find the sum of R(n) for all n in V

[My timing : 12 sec]