Jump to content

Possible recursion scenario?


dbillings

Recommended Posts

Does this make sense to anyone? Apparently the ... means that other statements are there they are just omitted, it's a head scratcher for me.

 

Assuming that n is an integer argument, write a function to compute f(n) where

f(n) = 1 + 2 + 3 + … + n

Then, write a function to compute g(n) where

g(n) = f(1) + f(2) + … f(n)

Link to comment
https://forums.phpfreaks.com/topic/101645-possible-recursion-scenario/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.