A man from the stars has come to Earth! Luckily the president of the United States, Donald Trump, has an infinity-sided die. Using this die, he can conjure up a number which you, the mayor of Podunk, must use to determine who should be sent to stop the invader! But be careful, you can only send a limited amount of bytes on the back of your frog!
Given a user input (which will be a positive integer), you must return a string depending on what category the number is in.
- If the number is a Fibonacci number, you must output Ness.
- If the number is a Lucas number, you must output Lucas.
- If the number is both a Lucas number and a Fibonacci number, you must output Travis.
- If the number is neither a a Lucas number nor a Fibonacci number, you must output Pippi.
Examples
Here are a bunch of test cases:
1 => Travis 2 => Travis 3 => Travis 4 => Lucas 5 => Ness 6 => Pippi 7 => Lucas 8 => Ness 610 => Ness 722 => Pippi 843 => Lucas
Rules
- This is code-golf, the shortest answer in bytes wins.
- You program may be a full program or a(n anonymous) function.
Bonuses
There are a couple bonuses that you can use to help your frog get the data to President Trump faster:
- For
-15
bytes: If the input number is2016
, you must outputTrump
, as he is at the peak of his presidency.
0, 1
while others start with1, 1
, I believe this depends on the definition you use. It's not uncommon to see the Lucas numbers start with2, 1
, e.g. OEIS has both versions (1, 2), but the one starting with 2 is the definition phase has gone with. \$\endgroup\$