OFFSET
1,1
COMMENTS
a(n) = A139127(n)*a(k)-1 for some k; A139128 gives number of distinct representations a(n) = a(i)*a(j)-1. - Reinhard Zumkeller, Apr 09 2008
Complement of A171413. [Jaroslav Krizek, Dec 08 2009]
REFERENCES
R. K. Guy, Unsolved Problems in Number Theory, E31.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Thomas Bloom, Problem 424, Erdős Problems.
Eric Weisstein's World of Mathematics, Hofstadter Sequences.
EXAMPLE
17 is present because it equals 2*9-1.
MATHEMATICA
f[s_, mx_] := Union[s, Select[Apply[Times, Subsets[s, {2}], {1}] - 1, # <= mx &]]; mx = 250; FixedPoint[f[#, mx] &, {2, 3}] (* Jean-François Alcover, Mar 29 2011 *)
PROG
(Haskell)
import Data.Set (singleton, deleteFindMin, fromList, union)
a005244 n = a005244_list !! (n-1)
a005244_list = f [2] (singleton 2) where
f xs s = y :
f (y : xs) (s' `union` fromList (map ((subtract 1) . (* y)) xs))
where (y, s') = deleteFindMin s
-- Reinhard Zumkeller, Feb 26 2013
CROSSREFS
KEYWORD
nonn,nice,easy
AUTHOR
D. R. Hofstadter
EXTENSIONS
More terms from Jud McCranie
STATUS
approved