Skip to content

Tag Archives: Sequence and Series

Given an integer N,  the task is to find the total number of ways a sequence can be formed consisting of distinct consecutive odd integers… Read More
Given integers N and K, the task is to find the maximum possible number an N length sequence of distinct positive integers can have if… Read More
Given two integers N and K, the task is to print the first K bits of the Nth term of the Thue-Morse sequence. The Thue-Morse… Read More
Given a positive integer N. The task is to find Nth term of the series 3, 7, 19, 55, 163, ….. Examples: Input: N =… Read More
Given two integers N and K, generate a sequence of size N+1 where the ith element is (i-1)⊕K, the task is to find the MEX… Read More
Given a sequence Y of size N where:  Yi = gcd(X1, X2, X3, . . ., Xi ) of some sequence X.  The task is… Read More
Given an array arr[] of size N consisting of non-negative integers. In one move ith index element of the array is decreased by 1 and… Read More
Given a series . and the value of a. Find the sum of the first n term of the series. Examples: Input: a = 3, n… Read More
Given an integer N, the task is to find a sequence of N distinct positive integers such that the Greatest Common Divisor of the sequence… Read More
Given a series 0, 4, 18, 48, 100 . . .  and an integer N, the task is to find the N-th term of the… Read More
Juggler Sequence is a series of integer number in which the first term starts with a positive integer number a and the remaining terms are… Read More
Given an integer N, the task is to find the subfactorial of the number represented as !N. The subfactorial of a number is defined using… Read More
Given the integers N, K and an infinite sequence of natural numbers where all the numbers containing the digit K (1<=K<=9) are removed. The task… Read More
Given two positive integers N and K, the task is to construct a permutation of the first N natural numbers such that all possible absolute… Read More
Given a positive integer N, the task is to find the average of the fourth powers of the first N natural numbers. Examples: Input: N… Read More

Start Your Coding Journey Now!