After many, many years from the last spaghetti party, the host of the previous 40 parties has created a discord server named OEIS (the name of the company) open to the people that still hung around with the same email address with the ingredients of spaghetti recipe (and not the steps of making it) posted in a secret channel, and you and your friend (Sam) have another friend, Tom, a discord moderator of the server. Tom, being an average guy, just gives you and Sam the invite link to the discord server, but does not tell you how you should figure the code out. However, he says that you need an accurate calculator for hard codes.
You and Sam enter the discord server together, and see the chat history for the past day. There has been five people that have attempted to get in the server, and it seems like a very simple code to Sam.
The discord moderator said to the first person "1", and the person says "1" and is let in.
The discord moderator said to the second person "4", and the person says "4" and is let in.
The discord moderator said to the third person "10", and the person says "10" and is let in.
The discord moderator said to the fourth person "28", and the person says "19" and is let in.
Sam now tries to get in to the locked channels in the server because he seems fairly confident. The discord moderator said to him "16", and Sam says "16" but he is banned from the server.
The discord moderator now says "34" to you, so what should you say? (There are at least two solutions.)
There is a 7-digit passcode (capital letter and 6 numbers) access to a pdf to the steps of making the spaghetti. Can you find clues in the question for that?
Hints for Second Solution:
Some very powerful puzzle. (Watch for puns)
Other Puzzles In This Series:
No. 1 - Closedㅤㅤ No. 11
No. 2ㅤ ㅤ ㅤ ㅤ ㅤ $\,$No. 12
No. 3 - Closedㅤ$\ \,$ No. 13
No. 8 - Closed