Endy0816 Posted August 9 Share Posted August 9 {(1,1), (2,0.1), (3,0.1), (4,0.01), (5,0.01)} assuming that this pattern continues on forever? Link to comment Share on other sites More sharing options...
joigus Posted August 9 Share Posted August 9 (edited) (n,101-n) would almost do the job you need. But you need the powers of ten to be "out of step" and catch up every two steps, so to speak. If you want a simple recipe the simplest one I can think of is with the floor function: floor(m)=floor(n+p/q)=n where n is the integer part of rational number m and p/q<1 is the rational part you need to add to n to get m. Then, (n,10-C(n)) where C(n) := floor((n-1)/2) https://en.wikipedia.org/wiki/Floor_and_ceiling_functions Quote The floor of x is also called the integral part, integer part, [...] and was historically denoted [x] (among other notations). A good thing about floor is that you have it built in in Mathematica, Wolfram, and the like. You probably can do this with trigonometric functions too. Edited August 9 by joigus minor correction 1 Link to comment Share on other sites More sharing options...
Ghideon Posted August 9 Share Posted August 9 (edited) 3 hours ago, Endy0816 said: {(1,1), (2,0.1), (3,0.1), (4,0.01), (5,0.01)} assuming that this pattern continues on forever? Idea: Use floor*? [math]10^{-\lfloor \frac{n-1}{2} \rfloor }[/math] So that the pairs of numbers are expressed as [math](n, 10^{-\lfloor \frac{n-1}{2} \rfloor }), n \in \mathbb{N}[/math] *) https://en.wikipedia.org/wiki/Floor_and_ceiling_functions#:~:text=In mathematics%2C the floor function,⌋ or floor(x). edit: x-post with @joigus Edited August 9 by Ghideon x-post, fixing latex 1 Link to comment Share on other sites More sharing options...
Endy0816 Posted August 9 Author Share Posted August 9 @joigus @Ghideon Thanks guys! This will work great Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now