A vampire number is a positive integer with an even number
of decimal
digits, where
and
are positive integers with exactly
decimal digits each. The
combined multiset of their digits
must equal the multiset of the digits
of
, and
and
may not both end in zero. If
is a vampire number, then
and
are called its "fangs." Exchanging the two fangs
does not give a distinct pair. Examples of vampire numbers include
|
(1)
| |||
|
(2)
| |||
|
(3)
| |||
|
(4)
| |||
|
(5)
| |||
|
(6)
| |||
|
(7)
|
(OEIS A014575). The 8-digit vampire numbers begin 10025010, 10042510, 10052010, 10052064, 10081260, ... (OEIS A048938).
The 10-digit vampire numbers begin 1000174288, 1000191991, 1000198206, 1000250010,
... (OEIS A048939). For , 2, ..., the numbers of
-digit vampire numbers are 0, 7, 148, 3228, ... (OEIS A048935).
Vampire numbers having exactly two distinct pairs of fangs include
|
(8)
| |||
|
(9)
| |||
|
(10)
|
(OEIS A048936).
Vampire numbers having exactly three distinct pairs of fangs include
|
(11)
|
(OEIS A048937).
The two smallest reported vampire numbers with four pairs of fangs are
|
(12)
| |||
|
(13)
| |||
|
(14)
| |||
|
(15)
|
and
|
(16)
| |||
|
(17)
| |||
|
(18)
| |||
|
(19)
|
and the smallest reported vampire number with five pairs of fangs is
|
(20)
| |||
|
(21)
| |||
|
(22)
| |||
|
(23)
| |||
|
(24)
|
(J. K. Andersen, pers. comm., May 4, 2003).
General formulas can be constructed for special classes of vampires. For an integer , take the fangs
|
(25)
| |||
|
(26)
|
giving the vampire
|
(27)
| |||
|
(28)
| |||
|
(29)
| |||
|
(30)
|
where
denotes
with the digits reversed (Roush and Rogers 1997-1998).
Pickover (1995, p. 227) also defines pseudovampire numbers, whose two factors have different numbers of decimal digits.