Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. Interactive mode enabled
  2.  
  3. php > function f($n){return--$n?f($n)**2-f($n)+1:2;}
  4. php > var_dump(f(1));
  5. int(2)
  6. php > var_dump(f(2));
  7. int(3)
  8. php > var_dump(f(3));
  9. int(7)
  10. php > var_dump(f(4));
  11. int(43)
  12. php > var_dump(f(5));
  13. int(1807)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement