I'm trying to make it so it loops fractions as 1, 1/2, 1/3, 1/4, etc up to 1/100, then add all them together and only show the sum and not the chain of fractions.

The code I have so far looks like this:

```
<?

$sum = 0;

for($n = 1;   $n<=1/100;  $n+=1/$n)
{
    $sum = $sum + $n;
}
echo $sum;

```

But it never gives me the right answer, which is 5.18. Any advice?