A Kaprekar number is a number whose square can be split into two parts whose sum is the the original number. Both parts must be positive.For example, 55^2 = 3025 and 30+25 = 55.This is an example in base 10. Kaprekar also defined his number for other bases.
297 is 33% of 900
1/99 = 0.01 01 01 .. .. 99 is a Kaprekar number (as is any string of 9s) : 992 = 9801 and 98 + 01 = 99
27 x 11 = 297 The number is 297.
1254 - 297 = 957/2 = 478.5
Kaprekar and one that's so easy a 5 year old could answer it
A Kaprekar number is a number whose square can be split into two parts whose sum is the the original number. Both parts must be positive.For example, 55^2 = 3025 and 30+25 = 55.This is an example in base 10. Kaprekar also defined his number for other bases.
//To check whether a number is Kaprekar or not public class kaprekar { public static void main(int x)//Enter number { int num=x*x,no=x,digit=0; int rev=0; do { digit++; no=no/10; } while (no>0); no=num; while(digit > 0) { rev=rev*10+no%10; no=no/10; digit--; } int r=0; while(rev > 0) { r=r*10+rev%10; rev=rev/10; } if((r+no)==x) { System.out.println("It is a Kaprekar No. "); } else{ System.out.println("It is not a Kaprekar No. "); } } }
D. R. Kaprekar died in 1986.
D. R. Kaprekar was born on 1905-01-17.
42
import java.io.*; class kaprekar { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter any number"); int n=Integer.parseInt(br.readLine()); int t=n,count=0; while(n!=0) { n=n/10; count++; } int s=t*t; int p=(int)Math.pow(10,count); int ld=s%p; int minus=s-ld; int fd=minus/p; int sum=fd+ld; if(sum==t) { System.out.println("Kaprekar Number"); } else { System.out.println("Not a Kaprekar number"); } } }
297 is 33% of 900
yes. -297 is a rational number. It is a negative integer.
1/99 = 0.01 01 01 .. .. 99 is a Kaprekar number (as is any string of 9s) : 992 = 9801 and 98 + 01 = 99
297, 594, 891, 1188, 1485 +297 . . .
No, it is not a prime number.