login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A173014 a(1) = 1, for n >= 2; a(n) = the smallest number h such that sigma(h) = A000203(h) = a(n-1) + 4, a(n) = 0 if no such number exists. 4
1, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7, 0, 3, 4, 7 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
a(1) = 1, a(n) = periodic sequence with period (0, 3, 4, 7) for n >= 2.
LINKS
FORMULA
A000203(a(n)) = a(n-1) + 4 for n >= 2.
MATHEMATICA
PadRight[{1}, 80, {7, 0, 3, 4}] (* Harvey P. Dale, May 09 2012 *)
PROG
(PARI) a(n)=if(n>1, [4, 7, 0, 3][n%4+1], 1) \\ Charles R Greathouse IV, Feb 19 2013
CROSSREFS
Sequence in context: A339675 A095877 A024476 * A322017 A093087 A130893
KEYWORD
nonn,easy
AUTHOR
Jaroslav Krizek, Nov 06 2010
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 14:10 EDT 2024. Contains 371792 sequences. (Running on oeis4.)