This has probably already been done before, but I had lots of fun discovering it. :)
I wanted to create a function , which, given a number , would take in the place value of a digit of (, such that the place value of is ), and output itself.
For example, if , than , , and .
Here's what I came up with:
And a Desmos graph.
I came up with it somewhat inductively, noting patterns while calculating the units digit, the tens digit, and so on, but I understand now why it works. The function essentially chops off everything after the desired place value, subtracts from that everything before the desired place value, and then divides by the power of ten associated with that place value. For example:
, (should retrieve the digit at , or )
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
Now you can trick people by making it look a little more complicated using the method I had shown earlier using trig and inverse trig, making it non-obvious to the naked eye(the formula you have shown is what I normally use for getting digits in a computer program, but I was just reminded that I had found the modulus function in terms of trig and inverse trig)
Log in to reply
How sinister! :)
I don't seem to remember seeing a note about that... could you add the link here?
It was actually in a daily challenge, in a comment as a reply to Siddarth’s comment(one or two fire), I don’t seem to remember the name so I have to go on treasure hunt too
Aha found it(joking it was quite recent) First solution, first comment, first reply to that, first reply to the first reply
Log in to reply
Rats, I'm not a Premium member. It says the problem has expired. :/
Log in to reply
π10cot−1(cot(103πx)) "
"A better one is"Got the perfect one 5+π10(tan−1(tan(103πx−2π))) "
These are both for 3xmod10, a little modification should get them to xmod10n
Log in to reply
Log in to reply
Log in to reply
Log in to reply
Log in to reply
n constant and then graph f(x) for all integers between like x=−10 and x=10 (or something else depending on n).
Yeah, the simpler one looks the same I think. It only really looks nice if you keep