Recursive function equals xmod3 for all x in N

AI Thread Summary
The discussion centers on the recursive function defined as f(0)=0 and f(x)=min(N\Uf(x-2^i), where i runs from 0 to i=floor(ln(x)/ln(2)). The author proposes that this function equals x mod 3 for all natural numbers x, suggesting an inductive proof approach. Key observations include that the values x-2^i do not overlap with x modulo 3, allowing the conclusion that f(x) must yield the missing residue class. The author also introduces a new claim that f(x) can be expressed as min(N\Uf(x-p)), where p is 1 or a prime, suggesting a potential for proving that f(x)=x mod 4 using a similar inductive method.
ama03630
Messages
2
Reaction score
0
I have a suspicion that if f(0)=0, and f(x)=min(N\Uf(x-2^i)) where i runs from 0 to i=floor(ln(x)/ln(2)), then f(x)=xmod3 for all natural numbers, x. Can anyone help me prove this inductively?
 
Mathematics news on Phys.org
I'm not bothering to show the base cases as they are easy. I'm leaving out some detail here and just giving a proof sketch, but the general approach is as follows:
Strengthen the induction hypothesis slightly by claiming that f(y) \in \{0,1,2\} in addition to f(y) \equiv y \pmod 3.
The key observation is that among,
x-2^0,x-2^1,x-2^2,\ldots
no elements are congruent to x modulo 3, but the first two represents the other two residue classes modulo 3. This means that if x=3k+a where a\in\{0,1,2\} and we assume that the hypothesis holds for all natural numbers less than x, then f(x-2^i) is never a, which means,
a \in \mathbb{N} \setminus \bigcup_{i=0}^{\left\lfloor \log_2(x)\right\rfloor} \{f\left(x-2^i\right)\}
For x > 1 we have \{f(x-2^0),f(x-2^1),a\}=\{0,1,2\} by our previous comments. This shows a is actually the minimum when x >1. So if you prove the theorem for x=0 and x =1, then you can inductively show f(3k+a)=a.
 
It took me a little while, but I understand this now. Thank you very much for your help. Now, I claim f(x)= min(N\Uf(x-p)) where p is 1 or a prime less than or equal to x. Then, f(x)=xmod4. Do you think I could use a similar style of an inductive proof to prove this?
 
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...
Back
Top