Part of it.
Submissions: 1454   Accuracy:

19.95%

  Difficulty: Medium   Marks: 4

A given series 3, 5, 9, 11, 15, 21, 29, ... and so on. You need to identify the pattern and determine whether the input number  ( ) is a part of the given series or not. 

Input:  
The first line of the input contains a single integer T denoting the number of test cases.
The first line of each test case contains n.

Output:
For each test case, Print Yes, if n is a part of the given series or else No.

Constraints:
1 <= T <= 200
1 <= n <= 1000

Example:
Input:

6
917
101
901
51
102
893
Output:
Yes
Yes
Yes
Yes
No
No

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Diksha Singhal
Author: diksha1812


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.