{"id":12499,"date":"2021-09-30T17:00:42","date_gmt":"2021-09-30T11:30:42","guid":{"rendered":"https:\/\/python-programs.com\/?p=12499"},"modified":"2021-11-22T18:33:33","modified_gmt":"2021-11-22T13:03:33","slug":"python-program-to-find-the-nth-kynea-number","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-find-the-nth-kynea-number\/","title":{"rendered":"Python Program to find the nth Kynea Number"},"content":{"rendered":"

Don’t miss the chance of Java programs examples with output pdf free download<\/a> as it is very essential for all beginners to experienced programmers for cracking the interviews.<\/p>\n

Given the number n, the task is to print nth Kynea Number in Python.<\/p>\n

Kynea number is a mathematical integer of the type<\/p>\n

nth = 4^n + 2^(n + 1) – 1, where n is a positive integer.<\/p>\n

Which can be also written as<\/p>\n

\u00a0 \"(2^n<\/p><\/blockquote>\n

The initial Kynea numbers are<\/p>\n

7, 23, 79, 287, 1087, 4223, 16639,…………..<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given nth number =6<\/pre>\n

Output:<\/strong><\/p>\n

The nth Kynea number = 4223<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given nth number =8<\/pre>\n

Output:<\/strong><\/p>\n

The nth Kynea number = 66047<\/pre>\n

Python Program to find the nth Kynea Number<\/h2>\n

Below are the ways to program to find the nth Kynea Number.<\/p>\n