With 16 digit codes, WiFi passwords are not known for their simplicity.

However, one restaurant in the US has turned obtaining their password into a guessing game as diners are asked to tackle a complex maths equation to reveal the secret code.

A diner was stumped visting Yaya’s Thai in San Antonio, Texas, upon discovering the lengths he had to go through to access its WiFi network.

He was baffled when reading the details to access the venue’s internet. He would need to solve the tricky maths question and the answer would reveal the password, the Mirror reports.

Finding himself stumped, the man shared the equation on the popular internet forum Reddit, to give brainiacs there the chance to get the password for him.

It’s not just this Thai restaurant that is confusing visitors though, as reported by CGTN. A Chinese University was under a lot of scrutiny for asking students to solve a calculus equation to obtain the password.

But why? Speaking to Beijing News, a member of PR staff said: “It aims at promoting the charm of higher mathematics and encouraging the freshmen to work hard.”

So, what’s the excuse for this Thai restaurant? Well, it’s not entirely clear, but one thing is for sure, it was definitely a talking point.

One user tried to crack the code and said: “This looks a lot like a summation of a binomial probability density function. I strongly doubt the divider between N/m should even be there.

“It would then be equivalent to having a number of successes of at least half of the attempts made, statistically, with a success probability of 25%. The answer depends on the number of attempts though.

“Try password ‘binomial’ or ‘Binomial’ or something like that.”

Things actually got pretty heated in the comments, with many users disagreeing with each others theories. Others saw the funnier side.

Another user replied: “It’s “Password”

Trying to make light of the situation, another user said: “The REAL answer to this problem is that they don’t even have wifi.”

*For more incredible stories sent straight to your inbox, sign up to Daily Star’s newsletters*

If you really want to have your mind blown, read this response from user ‘Real_John_C_Reilly:

“The first term in the summation should be a combination not a fraction if this is a binomial distribution.

“In that case (N N/2) = N!/((N/2)!2), and, (N N) = 1. The first term in the summation expansion is (N N/2)* (3/16)N/2 and the last term is (1/4)N. I’d simplify the addition of the two terms: (1/4)N * [ N!/((N/2)!)2) * 3N/2 + 1]”

“I think this answer suffices if N/2 and N are consecutive. But if that were the case N=2 so the answer would be (7/16).

“Also this assumes a LOT, due mostly to how vague the q is, and is also primarily based off the original assumption the first term in the summation was a combination and not a fraction.

I’d try “sevensixteenths” as the password or “Binomial” and then demand more information because this q really ticked me off”

Really? All this for a Wifi password?

It would seem that the majority of answers state that the Wifi password is ‘binomial CDF’ but with a typo, now they just need to figure out where the typo is.