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.

Showing 1-2 of 2 results.

A075493 Numbers k such that (sum of digits of k) > (number of divisors of k).

Original entry on oeis.org

3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 18, 19, 23, 25, 26, 27, 28, 29, 31, 33, 34, 35, 37, 38, 39, 41, 43, 44, 45, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 73, 74, 75, 76, 77, 78, 79, 81, 82, 83, 85, 86, 87, 88, 89, 91, 92
Offset: 1

Views

Author

Labos Elemer, Sep 26 2002

Keywords

Examples

			Sequence includes all primes with sum of digits > 2, i.e., all primes not of the form 10^d + 1 for nonnegative integers d (the only known primes of this form are 2, 11, and 101; see A185121).
Sequence also includes all squared primes with sum of digits > 3.
		

Crossrefs

Programs

  • Mathematica
    sud[x_] := Apply[Plus, IntegerDigits[x]] Do[s=sud[n]-DivisorSigma[0, n]; If[s>0, Print[n]], {n, 1, 256}]
    Select[Range[100],Total[IntegerDigits[#]]>DivisorSigma[0,#]&] (* Harvey P. Dale, Mar 07 2020 *)

Formula

Solutions to A007953(k) > A000005(k).

Extensions

Edited by Jon E. Schoenfield, Sep 23 2018

A075491 Sum of digits of n minus number of divisors of n.

Original entry on oeis.org

0, 0, 1, 1, 3, 2, 5, 4, 6, -3, 0, -3, 2, 1, 2, 2, 6, 3, 8, -4, -1, 0, 3, -2, 4, 4, 5, 4, 9, -5, 2, -1, 2, 3, 4, 0, 8, 7, 8, -4, 3, -2, 5, 2, 3, 6, 9, 2, 10, -1, 2, 1, 6, 1, 6, 3, 8, 9, 12, -6, 5, 4, 3, 3, 7, 4, 11, 8, 11, -1, 6, -3, 8, 7, 6, 7, 10, 7, 14, -2, 4, 6, 9, 0, 9, 10, 11, 8, 15, -3, 6, 5, 8, 9, 10, 3, 14, 11, 12, -8, 0, -5, 2, -3, -2, 3, 6, -3, 8, -6
Offset: 1

Views

Author

Labos Elemer, Sep 26 2002

Keywords

Examples

			a[n]<0, see A075492, n=10, 20, 30, ... a[n]=0, see A057531, primes like 2, 11, 101 a[n]>0, see A075493, majority of primes and others
		

Crossrefs

Programs

  • Mathematica
    sud[x_] := Apply[Plus, IntegerDigits[x]] Table[sud[w]-DivisorSigma[0, w], {w, 1, 128}]
    f[n_]:=Total[IntegerDigits[n]]-DivisorSigma[0,n];Array[f,130] (* Harvey P. Dale, Aug 10 2011 *)

Formula

a(n)=A007953[n]-A000005[n]
Showing 1-2 of 2 results.