We generalize the concept of happy number as follows.
Let

be a sequence with

and

for

.
Define

by
If

for some

, then we say that

is
a
semihappy number or, more precisely, an
-semihappy number.
In this paper, we determine fixed points and cycles of the functions

and discuss heights of semihappy numbers.
We also prove that for each choice of

,
there exist arbitrarily long finite sequences of consecutive

-semihappy numbers.