How can I make a formula from pattern of numbers?
I am programming in vb6. I need to find:
A1, A2, B1, B2 from N=number and C=constant,
Like what would be A1, A2, B1, B2 using N=609011567 and C=18155944
A = (A1 * 256) + A2 = ?
B = (B1 * 256) + B2 = ?
or what would be A1, A2, B1, B2 using N=609011571 and C=18155944
A = (A1 * 256) + A2 = ?
B = (B1 * 256) + B2 = ?
Here are the 3. pattern I have:
-------------------------------------------------
1. N=609011568 C=18155944 A1=18 A2=213 B1=125 B2=117
A = (A1 * 256) + A2 = 4821
B = (B1 * 256) + B2 = 32117
-------------------------------------------------
2. N=609011569 C=18155944 A1=211 A2=21 B1=188 B2=181
A = (A1 * 256) + A2 = 54037
B = (B1 * 256) + B2 = 48309
-------------------------------------------------
3. N=609011570 C=18155944 A1=147 A2=20 B1=252 B2=180
A = (A1 * 256) + A2 = 37652
B = (B1 * 256) + B2 = 64692
-------------------------------------------------
Is this possible from known data or is more needed?
Just looking at it, could be written as a set of simultaneous equations y = mx + b. Where the three equations intersect at some point on the graph.
The slope of the line is m, which in this case could be 256.
You have the constant C = 18155944 in each and the N in equation one is N + 1 in equation two and N + 2 in equation three.
And some more work.
This will help as a start.