Lucky Numbers in Java
Channel:
Subscribers:
1,540
Published on ● Video Link: https://www.youtube.com/watch?v=bI3yaKTA0aY
Lucky Numbers in Java
Lucky numbers are a sequence of natural numbers that remain after removing second, third, fourth, fifth and so on numbers respectively from a sequence of consecutive natural numbers.
Consider the sequence of first 20 natural numbers:
Removing every second number produces the sequence: 1, 3, 5, 7, 9, 11, 13, 15, 17, 19
Next removing every third number produces the sequence: 1, 3, 7, 9, 13, 15, 19
Next removing every fourth number produces the sequence: 1, 3, 7, 13, 15, 19
Further deleting every fifth number we get the sequence: 1, 3, 7, 13, 19
Deletion of every sixth number is not possible and the five numbers that are lucky to escape deletion remain indefinitely.
Other Videos By Robin Sir
2023-11-23 | KMap Solution (ISC 2023 Paper 1) |
2023-11-16 | Dudeney Number Java Program (ISC Theory Paper 2023) |
2023-11-15 | KMap Solution (ISC Sample Paper 2024) |
2023-11-14 | Reverse a Number using Recursion in Java |
2023-11-13 | Lecture 8 String Manipulation in Python |
2023-11-08 | Binary Tree (Recursive Data Structure) |
2023-11-06 | Vowels & Consonants Bar Graph Program in Java |
2023-11-04 | Keyword Cipher Program in Java |
2023-11-02 | Lecture 7 Loops in Python |
2023-10-31 | Date Program in Java |
2023-10-28 | Lucky Numbers in Java |
2023-10-26 | Rotate Matrix 270 Degrees Anti-clockwise in Java |
2023-10-24 | The elif Keyword in Python |
2023-10-24 | Vampire Number in Java |
2023-10-18 | Doubly Markov Matrix in Java |
2023-10-16 | Lecture 5 The If Statement in Python |
2023-10-14 | Snowball String in Java |
2023-10-12 | Hamming Number in Java |
2023-10-10 | Lecture 4 ID Function in Python |
2023-10-01 | Lecture 3 Input in Python |
2023-09-30 | Lecture 2 Variables in Python |
Tags:
robin sir
lucky numbers program in java
lucky number java program
check whether a number is a lucky number or not
isc
computer science
java
sample question paper
practical question paper