Hello! I came up with a formula for finding repeating (infinite) decimals:
z × x+(x-1) ÷ x
x ≠ -2,-1,0,1,2.
where z = 0 and x ≠ 0, ±1, ±2.
If the number X consists exclusively of prime factors 2 and/or 5 (in any combination through multiplication), the decimal will terminate. If any other prime factor (like 3, 7, 11, etc.) appears in the prime factorization of X, the decimal is guaranteed to be infinite (repeating).
Please don't judge too harshly, this is my first time making formulas and my first time in this community — I’m only in the 6th grade!
There may be errors in the text, as I am Russian and used a translation tool; I would like to hear your opinion.