cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Previous Showing 11-12 of 12 results.

A069536 Smallest multiple of 8 with digit sum n.

Original entry on oeis.org

0, 1000, 200, 120, 40, 32, 24, 16, 8, 72, 64, 56, 48, 184, 176, 96, 88, 296, 288, 496, 488, 696, 688, 896, 888, 1888, 2888, 3888, 4888, 5888, 6888, 7888, 8888, 9888, 19888, 29888, 39888, 49888, 59888, 69888, 79888, 89888, 99888
Offset: 0

Views

Author

Amarnath Murthy, Apr 01 2002

Keywords

Comments

a(25) onwards the pattern is evident.

Crossrefs

Programs

  • Haskell
    a069536 n = a069536_list !! n
    a069536_list = map (* 8) a077495_list
    -- Reinhard Zumkeller, Dec 09 2011

Formula

a(n) = 8 * A077495(n).

Extensions

Missing a(0) inserted by Franklin T. Adams-Watters, Nov 29 2011

A069531 Smallest positive k such that 10^k + 1 is divisible by n, or 0 if no such number exists.

Original entry on oeis.org

1, 0, 0, 0, 0, 0, 3, 0, 0, 0, 1, 0, 3, 0, 0, 0, 8, 0, 9, 0, 0, 0, 11, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 3, 0, 0, 0, 0, 0, 48, 0, 0, 0, 2
Offset: 1

Views

Author

Amarnath Murthy, Apr 01 2002

Keywords

Comments

When a(n) is not zero, it is a divisor of phi(n). If n is a prime with primitive root 10 (cf. A001913) then a(n) = (n-1)/2.

Examples

			a(7) = a(13) = 3 as 1001 is divisible by 7 and 13. a(17) = 8 as 17 divides 100000001 = 10^8 + 1.
		

Crossrefs

Programs

  • PARI
    A069531(n) = { fordiv(eulerphi(n),k,if(!((1+(10^k))%n),return(k))); (0); }; \\ Antti Karttunen, Aug 23 2019

Extensions

More terms from Vladeta Jovovic, Apr 03 2002
Previous Showing 11-12 of 12 results.