From ritka (“rare”) + -n (adverb-forming suffix).
ritkán (comparative ritkábban, superlative legritkábban)