Solved

# Create formula from pattern of numbers

Posted on 2009-07-04

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?