Problem 2495. Find the first N zeros of the 666 function
Solution Stats
Problem Comments
-
2 Comments
This problem wants us to find the first n integer roots of the 666 function. It took me a while to understand this problem. The first integer root is at sind(666)-cosd(6^3).
The notation 'nnn' is shorthand for "concatenate three copies of n". As I understand the problem, the roots of the function (i.e., the values of n at which the function is zero) are 6, 15, 18, 27, etc. However, we are to output 'nnn': 666, 151515, 181818, 272727, etc.
Solution Comments
-
3 Comments
Although technically correct, this is sort of vexatious.
I've now submitted a less vexatious answer :)
"Technically correct" is the best kind of correct. :-)
Problem Recent Solvers21
Suggested Problems
-
All your base are belong to us
513 Solvers
-
Project Euler: Problem 10, Sum of Primes
1303 Solvers
-
Volume of a sphere given its surface area
135 Solvers
-
The sum of individual numbers...
76 Solvers
-
Find out total non zero element of matrix
248 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!