340042 has 4 divisors (see below), whose sum is σ = 510066.
Its totient is φ = 170020.
The previous prime is 340037. The next prime is 340049. The reversal of 340042 is 240043.
Adding to 340042 its reverse (240043), we get a palindrome (580085).
Subtracting from 340042 its reverse (240043), we obtain a palindrome (99999).
It is a semiprime because it is the product of two primes.
It can be written as a sum of positive squares in only one way, i.e., 281961 + 58081 = 531^2 + 241^2
It is a Smith number, since the sum of its digits (13) coincides with the sum of the digits of its prime factors. Since it is squarefree, it is also a hoax number.
It is a nialpdrome in base 13.
It is not an unprimeable number, because it can be changed into a prime (340049) by changing a digit.
340042 is an untouchable number, because it is not equal to the sum of proper divisors of any number.
It is a pernicious number, because its binary representation contains a prime number (7) of ones.
It is a polite number, since it can be written as a sum of consecutive naturals, namely, 85009 + ... + 85012.
2340042 is an apocalyptic number.
340042 is a deficient number, since it is larger than the sum of its proper divisors (170024).
340042 is a wasteful number, since it uses less digits than its factorization.
340042 is an odious number, because the sum of its binary digits is odd.
The sum of its prime factors is 170023.
The product of its (nonzero) digits is 96, while the sum is 13.
The square root of 340042 is about 583.1312030753.
The cubic root of 340042 is about 69.7981942757.
The spelling of 340042 in words is "three hundred forty thousand, forty-two", and thus it is an iban number.