Problem 2495. Find the first N zeros of the 666 function

Using the following definition of the 666 function for this problem: f(n)=sin('nnn')-cos(n*n*n), write a function that returns the first N integer zeros of the 666 function, formatted as 'nnn'.

For example:

sixsixsix(1) = should return 666

sixsixsix(7) should return 666 151515 181818 272727 424242 636363 666666

Note 1: Consider a 'zero' to occur when f(n)<1e-8

Note 2: The sin and cosine functions must be in degrees, not radians.

Solution Stats

76.19% Correct | 23.81% Incorrect
Last Solution submitted on Oct 19, 2018

Problem Comments

Solution Comments

Problem Recent Solvers12

Suggested Problems

More from this Author9

Problem Tags