Funnily familiar

The output of hilarious can be approximated as \(\sqrt{ na }\), where \(n\) is a positive integer. What is \(a\)?

1
2
3
4
5
6
7
8
9
def hilarious(n):
    j = 1
    i = 0
    s = 0
    while i < n:
        i += j
        s += 1
        j += 1
    return s

×

Problem Loading...

Note Loading...

Set Loading...