subject

Fab Numbers Sid wants to find out the average of Fab numbers. A number is called Fab if it contains exactly 1 set bit. Eg-1 and 4 are fab numbers. He is unable to solve the problem and asking your help. Constraints 1<= t <=100
1<=n<=10^7

input format
the first line contains an integer 't', number of test cases.
each of the next line contains a single integer n denoting the nth number.

OUTPUT format
for each test case , print the average of feb numbers from 1 to n (Whole number)

sample input
1
5

ansver
Answers: 3

Another question on Computer Science

question
Computer Science, 19.08.2019 02:00
Difference between multiple inheritance and multilevel inheritance in c++
Cevap: 1
question
Computer Science, 21.08.2019 09:00
The hundred dresses -1 is about teasing wanda. it also borders on ragging and racism indirectly. describe how does it effect you and how do you evaluate it.​
Cevap: 2
question
Computer Science, 21.08.2019 12:00
What are the three types of apps .explain answer this fast i will mark u as the brainliest​
Cevap: 2
question
Computer Science, 21.08.2019 15:00
Prepare a chart for different data types in ms access
Cevap: 1
You know the right answer?
Fab Numbers Sid wants to find out the average of Fab numbers. A number is called Fab if it contains...
Questions
question
English, 04.10.2019 22:00
question
Geography, 04.10.2019 22:00
Questions on the website: 29784300