(I took this example from another question)
f[0] = 0;
f[n_] := f[n] = DigitCount[n, 10, 1] + f[n - 1];
f[1016]
I notice that this example defines f(n) in a different way from the one given by the documentation, which would be (the second line changes):
f[0] = 0;
f[n_] := DigitCount[n, 10, 1] + f[n - 1];
f[1016]
Is there a difference between these two ways of defining the function? When I run it, the output is the same, implying there's no difference; however I'd like to be sure.