fab ( a b -- n )


Vocabulary
project-euler.508

Inputs
aan object
ban object


Outputs
nan object


Definition


MEMO:: fab ( a b -- n )
a b [ zero? ] both?
[ 0 ] [
a b + 2 rem dup a - dup [ b + 2 / ] [ b - 2 / ] bi* fab
+
] if ;