Can You Derive a Mathematical Formula from This Data Pattern?

  • Thread starter Thread starter rishid
  • Start date Start date
  • Tags Tags
    deriving Formula
AI Thread Summary
The discussion focuses on deriving a mathematical formula from a given data pattern where the first column inputs integers and the second column outputs specific values. Participants identify that the output appears to reset to one at powers of two while following a sequence of odd integers. A proposed formula is shared: x = 2i + 1 - (2^(int(log2(i)) + 1), which calculates the output based on the input integer. The formula is broken down into components for clarity, illustrating how the calculations align with the provided data. This exchange highlights the collaborative effort to analyze and solve the mathematical pattern.
rishid
Messages
9
Reaction score
0
Need to analyze the pattern and create a formula if possible out of the data below. Inputting the first column and outputting the second.
1 1
2 1
3 3
4 1
5 3
6 5
7 7
8 1
9 3
10 5
11 7
12 9
13 11
14 13
15 15
16 1

Only thing I got that is on powers of 2, it should be 1.

If you got any ideas, throw them at me.

Thanks,

RishiD
 
Mathematics news on Phys.org
Looks like it's just going through the odd integers, resetting to one on powers of two.

- Warren
 
Try writing out i rows, starting a new row each time you come across 1. the 'answer' should jump out at you (i'm not sure yo'ure even looking for an answer, to be honest, and what "should be 1").
 
Hello Rishid,
I have the solution to your problem you posted on Oct. 25, 2004.

The formula is: x = 2 i + 1 - (2 ^ (int(log2(i)) + 1)

where i is the integer and x is the result,
log2(n) is the log (base 2) of n,
and int(n) is the integer value of n.

The table illustrates the calcs. (I used periods to line up the values because the message formatting automatically removes extraneous spaces. Also I was forced to use variables to represent each step for the same formatting reason). Specifically,

a = 2i + 1
b= int(log2(i))
c= int(log2(i)) + 1
d = 2^(int(log2(i))+1)
and finally the result you're trying to generate: x = a - d

i...a...b...c...d...x

1...3...0...1...2...1
2...5...1...2...4...1
3...7...1...2...4...3
4...9...2...3...8...1
5...11...2...3...8...3
6...13...2...3...8...5
7...15...2...3...8...7
...
16...33...4...5...32...1

I hope this helps.
RichJ
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...

Similar threads

Back
Top